Skip to content

Commit ecea745

Browse files
zwChandormando
authored andcommitted
issue#370: slab re-balance is not thread-safty in function do_item_get
1 parent 6af7aa0 commit ecea745

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

items.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ item *do_item_get(const char *key, const size_t nkey, const uint32_t hv) {
581581
* of item_lock, cache_lock, slabs_lock. */
582582
if (slab_rebalance_signal &&
583583
((void *)it >= slab_rebal.slab_start && (void *)it < slab_rebal.slab_end)) {
584-
do_item_unlink_nolock(it, hv);
584+
do_item_unlink(it, hv);
585585
do_item_remove(it);
586586
it = NULL;
587587
}

0 commit comments

Comments
 (0)