mirror of https://mirror.osredm.com/root/redis.git
broadcast a PONG message when slot's migration is over, which may reduce the moved request of clients (#7571)
This commit is contained in:
parent
b55c1602b5
commit
4faad81f50
|
@ -4522,6 +4522,9 @@ NULL
|
||||||
"configEpoch updated after importing slot %d", slot);
|
"configEpoch updated after importing slot %d", slot);
|
||||||
}
|
}
|
||||||
server.cluster->importing_slots_from[slot] = NULL;
|
server.cluster->importing_slots_from[slot] = NULL;
|
||||||
|
/* After importing this slot, let the other nodes know as
|
||||||
|
* soon as possible. */
|
||||||
|
clusterBroadcastPong(CLUSTER_BROADCAST_ALL);
|
||||||
}
|
}
|
||||||
clusterDelSlot(slot);
|
clusterDelSlot(slot);
|
||||||
clusterAddSlot(n,slot);
|
clusterAddSlot(n,slot);
|
||||||
|
|
Loading…
Reference in New Issue