mirror of https://mirror.osredm.com/root/redis.git
Clear owner_not_claiming_slot bit for the slot in clusterDelSlot (#12564)
Clear owner_not_claiming_slot bit for the slot in clusterDelSlot to keep it consistent with slot ownership information.
This commit is contained in:
parent
24187ed8e3
commit
8cdeddc81c
|
@ -2408,7 +2408,6 @@ void clusterUpdateSlotsConfigWith(clusterNode *sender, uint64_t senderConfigEpoc
|
||||||
}
|
}
|
||||||
clusterDelSlot(j);
|
clusterDelSlot(j);
|
||||||
clusterAddSlot(sender,j);
|
clusterAddSlot(sender,j);
|
||||||
bitmapClearBit(server.cluster->owner_not_claiming_slot, j);
|
|
||||||
clusterDoBeforeSleep(CLUSTER_TODO_SAVE_CONFIG|
|
clusterDoBeforeSleep(CLUSTER_TODO_SAVE_CONFIG|
|
||||||
CLUSTER_TODO_UPDATE_STATE|
|
CLUSTER_TODO_UPDATE_STATE|
|
||||||
CLUSTER_TODO_FSYNC_CONFIG);
|
CLUSTER_TODO_FSYNC_CONFIG);
|
||||||
|
@ -4944,6 +4943,8 @@ int clusterDelSlot(int slot) {
|
||||||
}
|
}
|
||||||
serverAssert(clusterNodeClearSlotBit(n,slot) == 1);
|
serverAssert(clusterNodeClearSlotBit(n,slot) == 1);
|
||||||
server.cluster->slots[slot] = NULL;
|
server.cluster->slots[slot] = NULL;
|
||||||
|
/* Make owner_not_claiming_slot flag consistent with slot ownership information. */
|
||||||
|
bitmapClearBit(server.cluster->owner_not_claiming_slot, slot);
|
||||||
return C_OK;
|
return C_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue