diff options
author | Wen Hui <wen.hui.ware@gmail.com> | 2022-06-29 01:17:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-29 08:17:00 +0300 |
commit | 51da5c3dde38b138c68733977e53eee789e51d10 (patch) | |
tree | 916ed125695b21ef32ba7d2ef4fe3c7d6927542a /src/commands | |
parent | 35c2ee8716dc9b1d4edbbb409815a585af491335 (diff) | |
download | redis-51da5c3dde38b138c68733977e53eee789e51d10.tar.gz |
Fix CLUSTER RESET command argument number issue (#10898)
Fix regression of CLUSTER RESET command in redis 7.0.
cluster reset command format is:
CLUSTER RESET [ HARD | SOFT]
According to the cluster reset command doc and codes, the third argument is optional, so
the arity in json file should be -2 instead of 3.
Add test to verify future regressions with RESET and RESET SOFT that were not covered.
Co-authored-by: Ubuntu <lucas.guang.yang1@huawei.com>
Co-authored-by: Oran Agra <oran@redislabs.com>
Co-authored-by: Binbin <binloveplay1314@qq.com>
Diffstat (limited to 'src/commands')
-rw-r--r-- | src/commands/cluster-reset.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/cluster-reset.json b/src/commands/cluster-reset.json index b7d675cd8..630f458e7 100644 --- a/src/commands/cluster-reset.json +++ b/src/commands/cluster-reset.json @@ -4,7 +4,7 @@ "complexity": "O(N) where N is the number of known nodes. The command may execute a FLUSHALL as a side effect.", "group": "cluster", "since": "3.0.0", - "arity": 3, + "arity": -2, "container": "CLUSTER", "function": "clusterCommand", "command_flags": [ |