enjoy-binbin opened a new pull request, #2051:
URL: https://github.com/apache/kvrocks/pull/2051

   These following cases will crash the server, the reason is that
   the index of numkeys is wrong:
   ```
   command getkeys zdiffstore dst 2 src1 src2
   command getkeys zinterstore dst 2 src1 src2
   command getkeys zunionstore dst 2 src1 src2
   ```
   
   These following getkeys output is wrong:
   ```
   > command getkeys zdiff 2 key1 key2
   1) "key1"
   2) "key2"
   3) (nil)
   
   > command getkeys bzmpop 0 2 key1 key2
   1) "key1"
   ```
   
   These are ok:
   ```
   command getkeys zinter 2 key1 key2
   command getkeys zunion 2 key1 key2
   command getkeys sintercard 2 key1 key2
   command getkeys zintercard 2 key1 key2
   command getkeys zmpop 2 key1 key2
   command getkeys lmpop 2 key1 key2
   command getkeys blmpop 0 2 key1 key2
   ```
   
   However, at present, there is still a problem with our zset store.
   We do not support returning dst key, but let's do it later...
   ```
   127.0.0.1:6379> command getkeys zinterstore dst 2 src1 src2
   1) "dst"
   2) "src1"
   3) "src2"
   
   127.0.0.1:6666> command getkeys zinterstore dst 2 src1 src2
   1) "src1"
   2) "src2"
   ```


-- 
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]

Reply via email to