mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Return early in XPENDING if sent a nonexistent consumer group.
This commit is contained in:
parent
86de089a1e
commit
1749fe7a26
@ -1728,8 +1728,10 @@ void xpendingCommand(client *c) {
|
||||
|
||||
/* If a consumer name was mentioned but it does not exist, we can
|
||||
* just return an empty array. */
|
||||
if (consumername && consumer == NULL)
|
||||
if (consumername && consumer == NULL) {
|
||||
addReplyMultiBulkLen(c,0);
|
||||
return;
|
||||
}
|
||||
|
||||
rax *pel = consumer ? consumer->pel : group->pel;
|
||||
unsigned char startkey[sizeof(streamID)];
|
||||
|
Loading…
Reference in New Issue
Block a user