-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENG-2783 Fix bug in ZREM which causes it to create a redis hash type.
Summary: If the number of keys to delete in ZREM is 0, it inadvertently creates a redis hash data type due to the SubDocument being empty. As a result, if we try a ZADD on that same set later on, it returns a wrong type error. The fix in this case was to not attempt the deletion altogether if the number of keys is 0. Test Plan: unit test. Reviewers: rahuldesirazu, amitanand, kannan, akashnil Reviewed By: amitanand, kannan, akashnil Subscribers: bogdan, ram, kannan, ybase Differential Revision: https://phabricator.dev.yugabyte.com/D4011
- Loading branch information
1 parent
9466536
commit a3a4401
Showing
2 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters