From fb37849abda31b77a05718a316f52ed3fb0a8acd Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 14 Sep 2011 07:11:13 +0930 Subject: 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 --- lib/tdb2/private.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/tdb2') 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 -- cgit