mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
optimize cluster failover
This commit is contained in:
parent
49816941a4
commit
a16da79228
@ -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 "
|
||||||
|
Loading…
Reference in New Issue
Block a user