Skip to content

Changes review - #4920

Closed
itamarhaber wants to merge 7 commits into
redis:unstablefrom
itamarhaber:origin/zpop
Closed

itamarhaber wants to merge 7 commits into
redis:unstablefrom
itamarhaber:origin/zpop

Conversation

@itamarhaber

Copy link
Copy Markdown
Member

itamarhaber and others added 7 commits April 30, 2018 02:10
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.
Comment thread src/t_zset.c
if (countarg) {
if (getLongFromObjectOrReply(c,countarg,&count,NULL) != C_OK)
return;
if (count < 0) count = 1;

@itamarhaber itamarhaber May 12, 2018 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@antirez, @artix75 shouldn't count < 0 be an error?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes you are right... Much better. I'm fixing it :-) Thanks

@CLAassistant

CLAassistant commented Mar 24, 2024 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ antirez
❌ itamarhaber
You have signed the CLA already but the status is still pending? Let us recheck it.

@sundb

sundb commented May 22, 2026

Copy link
Copy Markdown
Collaborator

Close via 438125b

@sundb sundb closed this May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants