From b8903ca2acfa193d6a1cf496ab25c26b06f22424 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 29 Mar 2011 15:54:13 +1030 Subject: [PATCH] tdb2: extend start of hash locks. This gives us more locks for future use, plus allows a clear-if-first-style hack to be implemented. --- ccan/tdb2/private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccan/tdb2/private.h b/ccan/tdb2/private.h index c95c7e05..0a030d6e 100644 --- a/ccan/tdb2/private.h +++ b/ccan/tdb2/private.h @@ -89,7 +89,7 @@ typedef int tdb_bool_err; /* 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 -- 2.39.2