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 b55c1602b5
commit 4faad81f50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

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);