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

Function sentinelSimFailureCrash

src/sentinel.cpp:4379–4383  ·  view source on GitHub ↗

Crash because of user request via SENTINEL simulate-failure command. */

Source from the content-addressed store, hash-verified

4377
4378/* Crash because of user request via SENTINEL simulate-failure command. */
4379void sentinelSimFailureCrash(void) {
4380 serverLog(LL_WARNING,
4381 "Sentinel CRASH because of SENTINEL simulate-failure");
4382 exit(99);
4383}
4384
4385/* Vote for the sentinel with 'req_runid' or return the old vote if already
4386 * voted for the specified 'req_epoch' or one greater.

Callers 2

Calls 1

serverLogFunction · 0.85

Tested by

no test coverage detected