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
e6d434c1
Commit
e6d434c1
authored
Mar 02, 2018
by
antirez
Browse files
CG: implement RETRYCOUNT in XCLAIM.
parent
f3d9520c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
e6d434c1
...
@@ -1788,6 +1788,8 @@ void xclaimCommand(client *c) {
...
@@ -1788,6 +1788,8 @@ void xclaimCommand(client *c) {
/* Update the consumer and idle time. */
/* Update the consumer and idle time. */
nack
->
consumer
=
consumer
;
nack
->
consumer
=
consumer
;
nack
->
delivery_time
=
deliverytime
;
nack
->
delivery_time
=
deliverytime
;
/* Set the delivery attempts counter if given. */
if
(
retrycount
>=
0
)
nack
->
delivery_count
=
retrycount
;
/* Add the entry in the new cosnumer local PEL. */
/* Add the entry in the new cosnumer local PEL. */
raxInsert
(
consumer
->
pel
,
buf
,
sizeof
(
buf
),
nack
,
NULL
);
raxInsert
(
consumer
->
pel
,
buf
,
sizeof
(
buf
),
nack
,
NULL
);
/* Send the reply for this entry. */
/* Send the reply for this entry. */
...
...
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