]> git.ozlabs.org Git - ccan/commitdiff
tdb2: move transaction lock
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 01:15:12 +0000 (10:45 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 01:15:12 +0000 (10:45 +0930)
Make it the same offset as TDB1.  This isn't strictly necessary, but
it would allow for total unification later, since TDB1 and TDB2's
transaction code is otherwise completely compatible.

ccan/tdb2/private.h

index 3397e04c4c4391d43bbab3e401e5a3bd0de57acf..b84c2f980db36252d6df496fcb00e12dc87619fa 100644 (file)
@@ -77,10 +77,10 @@ typedef int tdb_bool_err;
 
 /* Prevent others from opening the file. */
 #define TDB_OPEN_LOCK 0
 
 /* Prevent others from opening the file. */
 #define TDB_OPEN_LOCK 0
-/* Doing a transaction. */
-#define TDB_TRANSACTION_LOCK 1
 /* Expanding file. */
 #define TDB_EXPANSION_LOCK 2
 /* Expanding file. */
 #define TDB_EXPANSION_LOCK 2
+/* Doing a transaction. */
+#define TDB_TRANSACTION_LOCK 8
 /* Hash chain locks. */
 #define TDB_HASH_LOCK_START 64
 
 /* Hash chain locks. */
 #define TDB_HASH_LOCK_START 64