summaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorWen Hui <wen.hui.ware@gmail.com>2022-01-10 01:00:04 -0500
committerGitHub <noreply@github.com>2022-01-10 08:00:04 +0200
commitd7479107c742ac41cbe66480fa005c102abba588 (patch)
tree49a98fb0a33d51d57ee92f55de901d971099c122 /src/commands
parente8e02f900cbf0fbaae6eb53e52ce9c4cc8318b99 (diff)
downloadredis-d7479107c742ac41cbe66480fa005c102abba588.tar.gz
update codes according to new json file (#7425)
readonly/readwrite only set client flags for slave in cluster mode, so it should be ok for setting ok-stale and ok-loading command flag
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/readonly.json4
-rw-r--r--src/commands/readwrite.json4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/commands/readonly.json b/src/commands/readonly.json
index 658e705a5..1bbc220ed 100644
--- a/src/commands/readonly.json
+++ b/src/commands/readonly.json
@@ -7,7 +7,9 @@
"arity": 1,
"function": "readonlyCommand",
"command_flags": [
- "FAST"
+ "FAST",
+ "LOADING",
+ "STALE"
],
"acl_categories": [
"CONNECTION"
diff --git a/src/commands/readwrite.json b/src/commands/readwrite.json
index d68fd86ff..81e505ffe 100644
--- a/src/commands/readwrite.json
+++ b/src/commands/readwrite.json
@@ -7,7 +7,9 @@
"arity": 1,
"function": "readwriteCommand",
"command_flags": [
- "FAST"
+ "FAST",
+ "LOADING",
+ "STALE"
],
"acl_categories": [
"CONNECTION"