summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-09-14 07:11:13 +0930
committerRusty Russell <rusty@rustcorp.com.au>2011-09-14 07:11:13 +0930
commitfb37849abda31b77a05718a316f52ed3fb0a8acd (patch)
tree9439f140be4296cb7f35e897a55306280ae67ddf
parente69c90e5d59027695f158751ed7922d2389d2b5b (diff)
downloadsamba-fb37849abda31b77a05718a316f52ed3fb0a8acd.tar.gz
samba-fb37849abda31b77a05718a316f52ed3fb0a8acd.tar.bz2
samba-fb37849abda31b77a05718a316f52ed3fb0a8acd.zip
tdb2: move transaction lock
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. (Imported from CCAN commit de432e8f857ce23bccde7c6ffa3e7e21456df18b) Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-rw-r--r--lib/tdb2/private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tdb2/private.h b/lib/tdb2/private.h
index a18e02b720..3f3860c42b 100644
--- a/lib/tdb2/private.h
+++ b/lib/tdb2/private.h
@@ -89,10 +89,10 @@ typedef int tdb_bool_err;
/* 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
+/* Doing a transaction. */
+#define TDB_TRANSACTION_LOCK 8
/* Hash chain locks. */
#define TDB_HASH_LOCK_START 64