projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a5b9f8
)
tdb2: extend start of hash locks.
author
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 29 Mar 2011 05:24:13 +0000
(15:54 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 29 Mar 2011 05:24:13 +0000
(15:54 +1030)
This gives us more locks for future use, plus allows a clear-if-first-style
hack to be implemented.
ccan/tdb2/private.h
patch
|
blob
|
history
diff --git
a/ccan/tdb2/private.h
b/ccan/tdb2/private.h
index c95c7e05e59181f9d67c8131c7d813353a4c99af..0a030d6e317e368fbf0d057a21ece3b28fd8a624 100644
(file)
--- 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