summaryrefslogtreecommitdiff
path: root/slabs.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 /slabs.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 'slabs.c')
-rw-r--r--slabs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/slabs.c b/slabs.c
index 8ad0bf5..fb140bf 100644
--- a/slabs.c
+++ b/slabs.c
@@ -520,7 +520,7 @@ static int slab_rebalance_move(void) {
status = MOVE_PASS;
if (it->slabs_clsid != 255) {
void *hold_lock = NULL;
- uint32_t hv = hash(ITEM_key(it), it->nkey, 0);
+ uint32_t hv = hash(ITEM_key(it), it->nkey);
if ((hold_lock = item_trylock(hv)) == NULL) {
status = MOVE_LOCKED;
} else {