You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by GitBox <gi...@apache.org> on 2022/12/28 17:04:38 UTC

[GitHub] [incubator-kvrocks] torwig commented on issue #1212: new bug for command: bitpos

torwig commented on issue #1212:
URL: https://github.com/apache/incubator-kvrocks/issues/1212#issuecomment-1366797037

   Hi @lt1946, thank you for your report. 
   On my machine, with Redis I have the following:
   ```
   [yaroslav@localhost ~]$ redis-cli
   127.0.0.1:6379> SET mykey1 "\x00\xff\xf0"
   OK
   127.0.0.1:6379> BITPOS mykey1 1 7 15 BIT
   (integer) 8
   ```
   However, you said that you expect to see `9`.
   
   Kvrocks behaves in the following way:
   ```
   127.0.0.1:6666> SET mykey "\x00\xff\xf0"
   OK
   127.0.0.1:6666> BITPOS mykey 1 7 15 BIT
   (integer) -1
   ```
   And it needs an investigation.
   


-- 
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: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org