summaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
authorBinbin <binloveplay1314@qq.com>2022-06-30 21:32:40 +0800
committerGitHub <noreply@github.com>2022-06-30 16:32:40 +0300
commit35e836c26d40447f337979a61bb8cb3ed0575796 (patch)
tree3dbac4dbc977ea266ab15cb69eaab865aa11bc36 /src/server.h
parent51da5c3dde38b138c68733977e53eee789e51d10 (diff)
downloadredis-35e836c26d40447f337979a61bb8cb3ed0575796.tar.gz
Add SENTINEL command flag to CLIENT/COMMANDS subcommands (#10904)
This was harmless because we marked the parent command with SENTINEL flag. So the populateCommandTable was ok. And we also don't show the flag (SENTINEL and ONLY-SENTNEL) in COMMAND INFO. In this PR, we also add the same CMD_SENTINEL and CMD_ONLY_SENTINEL flags check when populating the sub-commands. so that in the future it'll be possible to add some sub-commands to sentinel or sentinel-only but not others.
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server.h b/src/server.h
index 6beae765b..3021e7683 100644
--- a/src/server.h
+++ b/src/server.h
@@ -2186,9 +2186,10 @@ typedef int redisGetKeysProc(struct redisCommand *cmd, robj **argv, int argc, ge
* or may just execute read commands. A command can not be marked
* both CMD_WRITE and CMD_MAY_REPLICATE
*
- * CMD_SENTINEL: This command is present in sentinel mode too.
+ * CMD_SENTINEL: This command is present in sentinel mode.
*
- * CMD_SENTINEL_ONLY: This command is present only when in sentinel mode.
+ * CMD_ONLY_SENTINEL: This command is present only when in sentinel mode.
+ * And should be removed from redis.
*
* CMD_NO_MANDATORY_KEYS: This key arguments for this command are optional.
*