We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker Image SHA:707f93473e7265df39593d38d83081ec1a6a36da31c97b391008858eb45a437f
kvrocks 镜像版本:sha256:707f93473e7265df39593d38d83081ec1a6a36da31c97b391008858eb45a437f
设置位图01011000对应字母X,通过bitfield从0偏移量获取7位,kvrocks结果是13(0001101),redis是44(0101100),从bitfield定义中,预期应该是redis对应的结果。
No response
The text was updated successfully, but these errors were encountered:
Will check this later today
Sorry, something went wrong.
kvrocks bitmap uses LSB here, and MSB is used in redis...This is the root cause of this problem
I would try to fix the bitfield, but "get" would not gurantee to be same as redis.
No branches or pull requests
Search before asking
Version
Docker Image SHA:707f93473e7265df39593d38d83081ec1a6a36da31c97b391008858eb45a437f
kvrocks 镜像版本:sha256:707f93473e7265df39593d38d83081ec1a6a36da31c97b391008858eb45a437f
Minimal reproduce step
redis-cli -h 192.168.1.72 -p 6666
192.168.1.72:6666> flushdb
OK
192.168.1.72:6666> SETBIT A 0 0
(integer) 0
192.168.1.72:6666> SETBIT A 1 1
(integer) 0
192.168.1.72:6666> SETBIT A 2 0
(integer) 0
192.168.1.72:6666> SETBIT A 3 1
(integer) 0
192.168.1.72:6666> SETBIT A 4 1
(integer) 0
192.168.1.72:6666> SETBIT A 5 0
(integer) 0
192.168.1.72:6666> SETBIT A 6 0
(integer) 0
192.168.1.72:6666> SETBIT A 7 0
(integer) 0
192.168.1.72:6666> GET A
"X"
192.168.1.72:6666> bitfield A get u7 0
redis-cli -h 192.168.1.72 -p 6379
192.168.1.72:6379> flushdb
OK
192.168.1.72:6379> SETBIT A 0 0
(integer) 0
192.168.1.72:6379> SETBIT A 1 1
(integer) 0
192.168.1.72:6379> SETBIT A 2 0
(integer) 0
192.168.1.72:6379> SETBIT A 3 1
(integer) 0
192.168.1.72:6379> SETBIT A 4 1
(integer) 0
192.168.1.72:6379> SETBIT A 5 0
(integer) 0
192.168.1.72:6379> SETBIT A 6 0
(integer) 0
192.168.1.72:6379> SETBIT A 7 0
(integer) 0
192.168.1.72:6379> GET A
"X"
192.168.1.72:6379> bitfield A get u7 0
What did you expect to see?
设置位图01011000对应字母X,通过bitfield从0偏移量获取7位,kvrocks结果是13(0001101),redis是44(0101100),从bitfield定义中,预期应该是redis对应的结果。
What did you see instead?
Anything Else?
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: