mirror of
https://github.com/fluencelabs/redis
synced 2025-04-22 00:52:13 +00:00
Sentinel: help subcommand in simulate-failure command
This commit is contained in:
parent
fb3af75f74
commit
5080f2d699
@ -3138,6 +3138,10 @@ void sentinelCommand(redisClient *c) {
|
|||||||
SENTINEL_SIMFAILURE_CRASH_AFTER_PROMOTION;
|
SENTINEL_SIMFAILURE_CRASH_AFTER_PROMOTION;
|
||||||
redisLog(REDIS_WARNING,"Failure simulation: this Sentinel "
|
redisLog(REDIS_WARNING,"Failure simulation: this Sentinel "
|
||||||
"will crash after promoting the selected slave to master");
|
"will crash after promoting the selected slave to master");
|
||||||
|
} else if (!strcasecmp(c->argv[j]->ptr,"help")) {
|
||||||
|
addReplyMultiBulkLen(c,2);
|
||||||
|
addReplyBulkCString(c,"crash-after-election");
|
||||||
|
addReplyBulkCString(c,"crash-after-promotion");
|
||||||
} else {
|
} else {
|
||||||
addReplyError(c,"Unknown failure simulation specified");
|
addReplyError(c,"Unknown failure simulation specified");
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user