mirror of
https://github.com/fluencelabs/redis
synced 2025-03-16 15:40:49 +00:00
Cluster: check that a MF is in progress in manualFailoverCheckTimeout().
Otherwise it is always detected as a manual failover timed out.
This commit is contained in:
parent
b7402bcad5
commit
c72449af30
@ -2299,7 +2299,7 @@ void resetManualFailover(void) {
|
||||
|
||||
/* If a manual failover timed out, abort it. */
|
||||
void manualFailoverCheckTimeout(void) {
|
||||
if (server.cluster->mf_end < mstime()) {
|
||||
if (server.cluster->mf_end && server.cluster->mf_end < mstime()) {
|
||||
redisLog(REDIS_WARNING,"Manual failover timed out.");
|
||||
resetManualFailover();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user