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!: fix BITPOS command responses (#3893) #3910

Merged
merged 1 commit into from
Oct 12, 2024

Conversation

Diskein
Copy link
Contributor

@Diskein Diskein commented Oct 11, 2024

  • BITPOS returns 0 for non-existent keys according to Redis's implementation.
  • BITPOS allows only 0 and 1 as the bit mode argument.

NOTE: I've marked this commit as breaking change because it changes BITPOS's responses which might be used by users.

Fixes #3893

BITPOS returns 0 for non-existent keys according to Redis's
implmentation.

BITPOS allows only 0 and 1 as the bit mode argument.

Signed-off-by: Denis K <[email protected]>
@romange
Copy link
Collaborator

romange commented Oct 12, 2024

Thank you, @Diskein !

@romange romange merged commit ba57145 into dragonflydb:main Oct 12, 2024
9 checks passed
@Diskein Diskein mentioned this pull request Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

improve BITPOS command
2 participants