broadcast a PONG message when slot's migration is over, which may reduce the moved request of clients (#7571)

This commit is contained in:
fayadexinqing 2020-07-30 09:05:27 +08:00 committed by GitHub
parent b6acefddb7
commit 323d92b689

View File

@ -4522,6 +4522,9 @@ NULL
"configEpoch updated after importing slot %d", slot);
}
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);
clusterAddSlot(n,slot);