Unverified Commit 4faad81f authored by fayadexinqing's avatar fayadexinqing Committed by GitHub
Browse files

broadcast a PONG message when slot's migration is over, which may reduce the...

broadcast a PONG message when slot's migration is over, which may reduce the moved request of clients (#7571)
parent b55c1602
...@@ -4522,6 +4522,9 @@ NULL ...@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment