fix migration's broadcast PONG message, after the slot modification (#7590)
This commit is contained in:
parent
c17e597d05
commit
e966264188
@ -4503,6 +4503,9 @@ NULL
|
|||||||
server.cluster->migrating_slots_to[slot])
|
server.cluster->migrating_slots_to[slot])
|
||||||
server.cluster->migrating_slots_to[slot] = NULL;
|
server.cluster->migrating_slots_to[slot] = NULL;
|
||||||
|
|
||||||
|
clusterDelSlot(slot);
|
||||||
|
clusterAddSlot(n,slot);
|
||||||
|
|
||||||
/* If this node was importing this slot, assigning the slot to
|
/* If this node was importing this slot, assigning the slot to
|
||||||
* itself also clears the importing status. */
|
* itself also clears the importing status. */
|
||||||
if (n == myself &&
|
if (n == myself &&
|
||||||
@ -4526,8 +4529,6 @@ NULL
|
|||||||
* soon as possible. */
|
* soon as possible. */
|
||||||
clusterBroadcastPong(CLUSTER_BROADCAST_ALL);
|
clusterBroadcastPong(CLUSTER_BROADCAST_ALL);
|
||||||
}
|
}
|
||||||
clusterDelSlot(slot);
|
|
||||||
clusterAddSlot(n,slot);
|
|
||||||
} else {
|
} else {
|
||||||
addReplyError(c,
|
addReplyError(c,
|
||||||
"Invalid CLUSTER SETSLOT action or number of arguments. Try CLUSTER HELP");
|
"Invalid CLUSTER SETSLOT action or number of arguments. Try CLUSTER HELP");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user