summaryrefslogtreecommitdiff
path: root/src/commands/command-getkeys.json
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/commands/command-getkeys.json
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/commands/command-getkeys.json')
-rw-r--r--src/commands/command-getkeys.json3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/command-getkeys.json b/src/commands/command-getkeys.json
index ca655ac32..744726144 100644
--- a/src/commands/command-getkeys.json
+++ b/src/commands/command-getkeys.json
@@ -9,7 +9,8 @@
"function": "commandGetKeysCommand",
"command_flags": [
"LOADING",
- "STALE"
+ "STALE",
+ "SENTINEL"
],
"acl_categories": [
"CONNECTION"