]> git.ozlabs.org Git - ccan/commitdiff
tdb2: extend start of hash locks.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 29 Mar 2011 05:24:13 +0000 (15:54 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 29 Mar 2011 05:24:13 +0000 (15:54 +1030)
This gives us more locks for future use, plus allows a clear-if-first-style
hack to be implemented.

ccan/tdb2/private.h

index c95c7e05e59181f9d67c8131c7d813353a4c99af..0a030d6e317e368fbf0d057a21ece3b28fd8a624 100644 (file)
@@ -89,7 +89,7 @@ typedef int tdb_bool_err;
 /* Expanding file. */
 #define TDB_EXPANSION_LOCK 2
 /* Hash chain locks. */
 /* Expanding file. */
 #define TDB_EXPANSION_LOCK 2
 /* Hash chain locks. */
-#define TDB_HASH_LOCK_START 3
+#define TDB_HASH_LOCK_START 64
 
 /* Range for hash locks. */
 #define TDB_HASH_LOCK_RANGE_BITS 30
 
 /* Range for hash locks. */
 #define TDB_HASH_LOCK_RANGE_BITS 30