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
3ddc5376
Commit
3ddc5376
authored
Jun 02, 2018
by
michael-grunder
Committed by
antirez
Jun 12, 2018
Browse files
Return early in XPENDING if sent a nonexistent consumer group.
parent
b85086c5
Changes
1
Show whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
3ddc5376
...
@@ -1769,8 +1769,10 @@ void xpendingCommand(client *c) {
...
@@ -1769,8 +1769,10 @@ void xpendingCommand(client *c) {
/* If a consumer name was mentioned but it does not exist, we can
/* If a consumer name was mentioned but it does not exist, we can
* just return an empty array. */
* just return an empty array. */
if
(
consumername
&&
consumer
==
NULL
)
if
(
consumername
&&
consumer
==
NULL
)
{
addReplyMultiBulkLen
(
c
,
0
);
addReplyMultiBulkLen
(
c
,
0
);
return
;
}
rax
*
pel
=
consumer
?
consumer
->
pel
:
group
->
pel
;
rax
*
pel
=
consumer
?
consumer
->
pel
:
group
->
pel
;
unsigned
char
startkey
[
sizeof
(
streamID
)];
unsigned
char
startkey
[
sizeof
(
streamID
)];
...
...
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