From 51da5c3dde38b138c68733977e53eee789e51d10 Mon Sep 17 00:00:00 2001 From: Wen Hui Date: Wed, 29 Jun 2022 01:17:00 -0400 Subject: 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 Co-authored-by: Oran Agra Co-authored-by: Binbin --- src/commands/cluster-reset.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands') 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": [ -- cgit v1.2.1