mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
Clear the importing status from the slot if a CLUSTER SETSLOT command permanently assigns the slot to the importing node.
This commit is contained in:
parent
6c0047c430
commit
c5954c1966
@ -1305,6 +1305,11 @@ void clusterCommand(redisClient *c) {
|
||||
server.cluster.migrating_slots_to[slot])
|
||||
server.cluster.migrating_slots_to[slot] = NULL;
|
||||
|
||||
/* If this node was importing this slot, assigning the slot to
|
||||
* itself also clears the importing status. */
|
||||
if (n == server.cluster.myself && server.cluster.importing_slots_from[slot])
|
||||
server.cluster.importing_slots_from[slot] = NULL;
|
||||
|
||||
clusterDelSlot(slot);
|
||||
clusterAddSlot(n,slot);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user