git.samba.org
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09f82b5
)
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 04:20:07 +0000
(15:20 +1100)
This give a better hash distribution
(cherry picked from commit
f7f8bde2376f8180a0dca6d7b8d7d2a4a12f4bd8
)
common/ctdb_message.c
patch
|
blob
|
history
diff --git
a/common/ctdb_message.c
b/common/ctdb_message.c
index 751acd3a8be035221b006183d099be147ce93979..27f1f3955b0bfb3a98a64bacddcb67162448c4e7 100644
(file)
--- a/
common/ctdb_message.c
+++ b/
common/ctdb_message.c
@@
-32,7
+32,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"));