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
66c6218a
Unverified
Commit
66c6218a
authored
Jun 07, 2018
by
Salvatore Sanfilippo
Committed by
GitHub
Jun 07, 2018
Browse files
Merge pull request #4977 from michael-grunder/xpending-early-return
Return early in XPENDING if sent a nonexistent consumer group.
parents
f847dd3a
1749fe7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
66c6218a
...
@@ -1783,8 +1783,10 @@ void xpendingCommand(client *c) {
...
@@ -1783,8 +1783,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