infdahai commented on code in PR #1468:
URL:
https://github.com/apache/incubator-kvrocks/pull/1468#discussion_r1204191087
##########
src/commands/cmd_zset.cc:
##########
@@ -745,6 +822,7 @@ REDIS_REGISTER_COMMANDS(MakeCmdAttr<CommandZAdd>("zadd",
-4, "write", 1, 1, 1),
MakeCmdAttr<CommandZLexCount>("zlexcount", 4,
"read-only", 1, 1, 1),
MakeCmdAttr<CommandZPopMax>("zpopmax", -2, "write", 1,
1, 1),
MakeCmdAttr<CommandZPopMin>("zpopmin", -2, "write", 1,
1, 1),
+ MakeCmdAttr<CommandZMPop>("zmpop", -4, "write", 1, 1,
1),
Review Comment:
Not precise. You should consider where the last position is. `-1` means the
last one and it could be a `count`.
For example, the `ZMPOP 2 myzset myzset2 MIN COUNT 10` command should return
the range {2,3,1} because we want to watch `myzset`, `myzset2` in redis if
possible.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]