Repository navigation
Changes review - #4920
Closed
itamarhaber wants to merge 7 commits into
Closed
Changes review#4920itamarhaber wants to merge 7 commits into
itamarhaber wants to merge 7 commits into
Conversation
An implementation of the [Ze POP Redis Module](https://github.com/itamarhaber/zpop) as core Redis commands. Fixes redis#1861.
This commit also adds a top comment about a subtle behavior of mixing blocking operations of different types in the same key.
Usually blocking operations make a lot of sense with multiple keys so that we can listen to multiple queues (or whatever the app models) with a single connection. However in the synchronous case it is more useful to be able to ask for N elements. This is a change that I also wanted to perform soon or later in the blocking list variant, but here it is more natural since there is no reply type difference.
itamarhaber
commented
May 12, 2018
| if (countarg) { | ||
| if (getLongFromObjectOrReply(c,countarg,&count,NULL) != C_OK) | ||
| return; | ||
| if (count < 0) count = 1; |
Member
Author
Contributor
There was a problem hiding this comment.
Yes you are right... Much better. I'm fixing it :-) Thanks
|
|
Collaborator
|
Close via 438125b |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
LGTM.
/* Note: become eventually consistent ;) /*
ref: https://github.com/antirez/redis/pull/4879#issuecomment-388411032