mirror of
https://github.com/fluencelabs/redis
synced 2025-04-17 06:32:15 +00:00
Cluster: clarified a comment in clusterUpdateSlotsConfigWith().
This commit is contained in:
parent
8287945ff8
commit
1ed0ad77f0
@ -1113,9 +1113,9 @@ void clusterUpdateSlotsConfigWith(clusterNode *sender, uint64_t senderConfigEpoc
|
|||||||
for (j = 0; j < REDIS_CLUSTER_SLOTS; j++) {
|
for (j = 0; j < REDIS_CLUSTER_SLOTS; j++) {
|
||||||
if (bitmapTestBit(slots,j)) {
|
if (bitmapTestBit(slots,j)) {
|
||||||
/* We rebind the slot to the new node claiming it if:
|
/* We rebind the slot to the new node claiming it if:
|
||||||
* 1) The slot was unassigned.
|
* 1) The slot was unassigned or the new node claims it with a
|
||||||
* 2) The new node claims it with a greater configEpoch.
|
* greater configEpoch.
|
||||||
* 3) We are not currently importing the slot. */
|
* 2) We are not currently importing the slot. */
|
||||||
if (server.cluster->slots[j] == sender ||
|
if (server.cluster->slots[j] == sender ||
|
||||||
server.cluster->importing_slots_from[j]) continue;
|
server.cluster->importing_slots_from[j]) continue;
|
||||||
if (server.cluster->slots[j] == NULL ||
|
if (server.cluster->slots[j] == NULL ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user