Skip to content
New issue

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

Fix the bitmap range is smaller than that of Redis #465

Merged
merged 4 commits into from
Jan 23, 2022

Conversation

ColinChamber
Copy link
Contributor

@ColinChamber ColinChamber commented Jan 19, 2022

Background in issue #454, I originally planned to expand the permitted range of start end parameters of bitcount bitop to be the same as in Redis. But, I found that there were too many changes, and it was unnecessary to do that because the offset of setbit is at most 2^32-1. So it remains std::stoi doesn't seem to be a problem after the fix because start/end is different from offset, one is byte, and the other is bit.

closes #454

src/redis_cmd.cc Outdated Show resolved Hide resolved
@git-hulk git-hulk requested a review from ShooterIT January 20, 2022 11:32
@git-hulk git-hulk merged commit a603fba into apache:unstable Jan 23, 2022
@git-hulk
Copy link
Member

Merged, thanks @ColinChamber

ShooterIT pushed a commit to ShooterIT/kvrocks that referenced this pull request Jan 27, 2022
@ShooterIT ShooterIT mentioned this pull request Jan 27, 2022
ShooterIT pushed a commit to ShooterIT/kvrocks that referenced this pull request Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[QUESTION]Setbit max offset limit
3 participants