MCPcopy Create free account
hub / github.com/F-Stack/f-stack / manualFailoverCheckTimeout

Function manualFailoverCheckTimeout

app/redis-6.2.6/src/cluster.c:3462–3467  ·  view source on GitHub ↗

If a manual failover timed out, abort it. */

Source from the content-addressed store, hash-verified

3460
3461/* If a manual failover timed out, abort it. */
3462void manualFailoverCheckTimeout(void) {
3463 if (server.cluster->mf_end && server.cluster->mf_end < mstime()) {
3464 serverLog(LL_WARNING,"Manual failover timed out.");
3465 resetManualFailover();
3466 }
3467}
3468
3469/* This function is called from the cluster cron function in order to go
3470 * forward with a manual failover state machine. */

Callers 1

clusterCronFunction · 0.85

Calls 2

resetManualFailoverFunction · 0.85
mstimeFunction · 0.70

Tested by

no test coverage detected