Commit 134b2582 authored by chendianqiang's avatar chendianqiang Committed by antirez
Browse files

optimize cluster failover

parent 1293e2a5
...@@ -3031,6 +3031,7 @@ void clusterHandleSlaveFailover(void) { ...@@ -3031,6 +3031,7 @@ void clusterHandleSlaveFailover(void) {
if (server.cluster->mf_end) { if (server.cluster->mf_end) {
server.cluster->failover_auth_time = mstime(); server.cluster->failover_auth_time = mstime();
server.cluster->failover_auth_rank = 0; server.cluster->failover_auth_rank = 0;
clusterDoBeforeSleep(CLUSTER_TODO_HANDLE_FAILOVER);
} }
serverLog(LL_WARNING, serverLog(LL_WARNING,
"Start of election delayed for %lld milliseconds " "Start of election delayed for %lld milliseconds "
......
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