git.samba.org
/
obnox
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c137531
)
common/messaging: Use the jenkins hash in ctdb_message
author
Volker Lendecke
<vl@samba.org>
Wed, 3 Apr 2013 12:59:21 +0000
(14:59 +0200)
committer
Amitay Isaacs
<amitay@gmail.com>
Fri, 5 Apr 2013 02:13:08 +0000
(13:13 +1100)
This give a better hash distribution
common/ctdb_message.c
patch
|
blob
|
history
diff --git
a/common/ctdb_message.c
b/common/ctdb_message.c
index 9700caf42e53bd93bbbd25949153a3999c88abe2..b0d2ea0168fb7286771e41a5786c614244363c18 100644
(file)
--- a/
common/ctdb_message.c
+++ b/
common/ctdb_message.c
@@
-31,7
+31,9
@@
static int message_list_db_init(struct ctdb_context *ctdb)
{
ctdb->message_list_indexdb = tdb_open("messagedb", 8192,
- TDB_INTERNAL|TDB_DISALLOW_NESTING,
+ TDB_INTERNAL|
+ TDB_INCOMPATIBLE_HASH|
+ TDB_DISALLOW_NESTING,
O_RDWR|O_CREAT, 0);
if (ctdb->message_list_indexdb == NULL) {
DEBUG(DEBUG_ERR, ("Failed to create message list indexdb\n"));