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

Function sentinelFailoverStateStr

src/sentinel.cpp:3264–3275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3262}
3263
3264const char *sentinelFailoverStateStr(int state) {
3265 switch(state) {
3266 case SENTINEL_FAILOVER_STATE_NONE: return "none";
3267 case SENTINEL_FAILOVER_STATE_WAIT_START: return "wait_start";
3268 case SENTINEL_FAILOVER_STATE_SELECT_SLAVE: return "select_slave";
3269 case SENTINEL_FAILOVER_STATE_SEND_SLAVEOF_NOONE: return "send_slaveof_noone";
3270 case SENTINEL_FAILOVER_STATE_WAIT_PROMOTION: return "wait_promotion";
3271 case SENTINEL_FAILOVER_STATE_RECONF_SLAVES: return "reconf_slaves";
3272 case SENTINEL_FAILOVER_STATE_UPDATE_CONFIG: return "update_config";
3273 default: return "unknown";
3274 }
3275}
3276
3277/* Redis instance to Redis protocol representation. */
3278void addReplySentinelRedisInstance(client *c, sentinelRedisInstance *ri) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected