summaryrefslogtreecommitdiff
path: root/src/sentinel.c
diff options
context:
space:
mode:
authorBinbin <binloveplay1314@qq.com>2022-02-07 19:27:33 +0800
committerGitHub <noreply@github.com>2022-02-07 13:27:33 +0200
commitb95beeb595c94649cfda4b2bd8049cf5ddb07868 (patch)
treeb52b65584635f0306c9890215b55728217d68034 /src/sentinel.c
parent9dfeda58ed8425a75a0a81939e03fee8f422be3b (diff)
downloadredis-b95beeb595c94649cfda4b2bd8049cf5ddb07868.tar.gz
Fix redis-cli with sentinel crash due to SENTINEL DEBUG missing summary (#10250)
Fix redis-cli with sentinel crash due to SENTINEL DEBUG missing summary Because SENTINEL DEBUG missing summary in its json file, with the change in #10043, the following assertion will fail. ``` [redis]# src/redis-cli -p 26379 redis-cli: redis-cli.c:678: cliInitCommandHelpEntry: Assertion `reply->type == 1' failed. ``` This commit add the summary and complexity for SENTINEL DEBUG, which introduced in #9291, and also improved the help message.
Diffstat (limited to 'src/sentinel.c')
-rw-r--r--src/sentinel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sentinel.c b/src/sentinel.c
index 937a5b86f..98121acde 100644
--- a/src/sentinel.c
+++ b/src/sentinel.c
@@ -3735,8 +3735,9 @@ void sentinelCommand(client *c) {
" Set a global Sentinel configuration parameter.",
"CONFIG GET <param>",
" Get global Sentinel configuration parameter.",
-"DEBUG",
+"DEBUG [<param> <value> ...]",
" Show a list of configurable time parameters and their values (milliseconds).",
+" Or update current configurable parameters values (one or more).",
"GET-MASTER-ADDR-BY-NAME <master-name>",
" Return the ip and port number of the master with that name.",
"FAILOVER <master-name>",