From de432e8f857ce23bccde7c6ffa3e7e21456df18b Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 31 Aug 2011 10:45:12 +0930 Subject: [PATCH] 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. --- ccan/tdb2/private.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ccan/tdb2/private.h b/ccan/tdb2/private.h index 3397e04c..b84c2f98 100644 --- a/ccan/tdb2/private.h +++ b/ccan/tdb2/private.h @@ -77,10 +77,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 -- 2.39.2