Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
3640e029
Commit
3640e029
authored
Oct 15, 2018
by
antirez
Browse files
Make comment about nack->consumer test for minidle more obvious.
Related to #5437.
parent
0b1784b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
3640e029
...
...
@@ -2169,8 +2169,10 @@ void xclaimCommand(client *c) {
if
(
nack
!=
raxNotFound
)
{
/* We need to check if the minimum idle time requested
* by the caller is satisfied by this entry.
* Note that if nack->consumer is NULL, means the NACK
* is created by FORCE, we should ignore minidle. */
*
* Note that the nack could be created by FORCE, in this
* case there was no pre-existing entry and minidle should
* be ignored, but in that case nick->consumer is NULL. */
if
(
nack
->
consumer
&&
minidle
)
{
mstime_t
this_idle
=
now
-
nack
->
delivery_time
;
if
(
this_idle
<
minidle
)
continue
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment