Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c3d22fe

Browse files
kaliberadormando
authored andcommitted
Removed redundant hash computation.
1 parent c6a700a commit c3d22fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slabs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ static int slab_rebalance_move(void) {
540540
}
541541
} else if (refcount == 2) { /* item is linked but not busy */
542542
if ((it->it_flags & ITEM_LINKED) != 0) {
543-
do_item_unlink_nolock(it, hash(ITEM_key(it), it->nkey, 0));
543+
do_item_unlink_nolock(it, hv);
544544
status = MOVE_DONE;
545545
} else {
546546
/* refcount == 1 + !ITEM_LINKED means the item is being

0 commit comments

Comments
 (0)