MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / manualFailoverCheckTimeout

Function manualFailoverCheckTimeout

src/cluster.cpp:3520–3525  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3518
3519/* If a manual failover timed out, abort it. */
3520void manualFailoverCheckTimeout(void) {
3521 if (g_pserver->cluster->mf_end && g_pserver->cluster->mf_end < mstime()) {
3522 serverLog(LL_WARNING,"Manual failover timed out.");
3523 resetManualFailover();
3524 }
3525}
3526
3527/* This function is called from the cluster cron function in order to go
3528 * forward with a manual failover state machine. */

Callers 1

clusterCronFunction · 0.85

Calls 3

serverLogFunction · 0.85
resetManualFailoverFunction · 0.85
mstimeFunction · 0.70

Tested by

no test coverage detected