common/messaging: Use the jenkins hash in ctdb_message
authorVolker Lendecke <vl@samba.org>
Wed, 3 Apr 2013 12:59:21 +0000 (14:59 +0200)
committerAmitay 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

index 9700caf42e53bd93bbbd25949153a3999c88abe2..b0d2ea0168fb7286771e41a5786c614244363c18 100644 (file)
@@ -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"));