diff options
author | dormando <dormando@rydia.net> | 2014-04-16 23:13:04 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2014-04-16 23:20:21 -0700 |
commit | 05ca809cc4bda62f0c778be29bfdf565fa39142d (patch) | |
tree | caaa069af4a731988f0d00cee92c804ce307617d /assoc.c | |
parent | d5d4c4909f37b9ec157bb418fa821530dfb66c9f (diff) | |
download | memcached-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |