This is an automated email from the ASF dual-hosted git repository.
binbin pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git
The following commit(s) were added to refs/heads/unstable by this push:
new 03dedbca Fix ZREMRANGEBYSCORE arity, should be 4 instead of -4 (#1604)
03dedbca is described below
commit 03dedbcacb328f1c69b377e7afe84100cf2db943
Author: Binbin <[email protected]>
AuthorDate: Mon Jul 24 17:01:54 2023 +0800
Fix ZREMRANGEBYSCORE arity, should be 4 instead of -4 (#1604)
This doesn't matter, just a minor fix, zremrangebyscore
doesn't accept extra arguments.
---
src/commands/cmd_zset.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/commands/cmd_zset.cc b/src/commands/cmd_zset.cc
index 88a8d80d..6ee32dfd 100644
--- a/src/commands/cmd_zset.cc
+++ b/src/commands/cmd_zset.cc
@@ -1364,7 +1364,7 @@ REDIS_REGISTER_COMMANDS(MakeCmdAttr<CommandZAdd>("zadd",
-4, "write", 1, 1, 1),
MakeCmdAttr<CommandZRank>("zrank", 3, "read-only", 1,
1, 1),
MakeCmdAttr<CommandZRem>("zrem", -3, "write", 1, 1, 1),
MakeCmdAttr<CommandZRemRangeByRank>("zremrangebyrank",
4, "write", 1, 1, 1),
-
MakeCmdAttr<CommandZRemRangeByScore>("zremrangebyscore", -4, "write", 1, 1, 1),
+
MakeCmdAttr<CommandZRemRangeByScore>("zremrangebyscore", 4, "write", 1, 1, 1),
MakeCmdAttr<CommandZRemRangeByLex>("zremrangebylex",
4, "write", 1, 1, 1),
MakeCmdAttr<CommandZRevRangeByScore>("zrevrangebyscore", -4, "read-only", 1, 1,
1),
MakeCmdAttr<CommandZRevRank>("zrevrank", 3,
"read-only", 1, 1, 1),