From 05ca809cc4bda62f0c778be29bfdf565fa39142d Mon Sep 17 00:00:00 2001 From: dormando Date: Wed, 16 Apr 2014 23:13:04 -0700 Subject: Make hash table algorithm selectable jenkins hash is old. Lets try murmur3 to start! Default is the old one, so people aren't surprised. --- assoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assoc.c') diff --git a/assoc.c b/assoc.c index 0fc5d18..5558be1 100644 --- a/assoc.c +++ b/assoc.c @@ -218,7 +218,7 @@ static void *assoc_maintenance_thread(void *arg) { for (it = old_hashtable[expand_bucket]; NULL != it; it = next) { next = it->h_next; - bucket = hash(ITEM_key(it), it->nkey, 0) & hashmask(hashpower); + bucket = hash(ITEM_key(it), it->nkey) & hashmask(hashpower); it->h_next = primary_hashtable[bucket]; primary_hashtable[bucket] = it; } -- cgit v1.2.1