This is an automated email from the ASF dual-hosted git repository.

hulk pushed a commit to branch 2.5
in repository https://gitbox.apache.org/repos/asf/kvrocks.git

commit 5e8c292386ffae5aaa58b76dfda57b497b4b3370
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),

Reply via email to