From 5080f2d69908e2324311f03224a5dc7c98322569 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 25 May 2015 10:24:27 +0200 Subject: [PATCH] Sentinel: help subcommand in simulate-failure command --- src/sentinel.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sentinel.c b/src/sentinel.c index b4ba4e82..6f10c27f 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -3138,6 +3138,10 @@ void sentinelCommand(redisClient *c) { SENTINEL_SIMFAILURE_CRASH_AFTER_PROMOTION; redisLog(REDIS_WARNING,"Failure simulation: this Sentinel " "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 { addReplyError(c,"Unknown failure simulation specified"); return;