summaryrefslogtreecommitdiff
path: root/assoc.c
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2014-04-16 23:13:04 -0700
committerdormando <dormando@rydia.net>2014-04-16 23:20:21 -0700
commit05ca809cc4bda62f0c778be29bfdf565fa39142d (patch)
treecaaa069af4a731988f0d00cee92c804ce307617d /assoc.c
parentd5d4c4909f37b9ec157bb418fa821530dfb66c9f (diff)
downloadmemcached-05ca809cc4bda62f0c778be29bfdf565fa39142d.tar.gz
Make hash table algorithm selectable
jenkins hash is old. Lets try murmur3 to start! Default is the old one, so people aren't surprised.
Diffstat (limited to 'assoc.c')
-rw-r--r--assoc.c2
1 files changed, 1 insertions, 1 deletions
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;
}