parent
0af467d18f
commit
7080a28efc
@ -2246,7 +2246,7 @@ void xclaimCommand(client *c) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Do the actual claiming. */
|
/* Do the actual claiming. */
|
||||||
streamConsumer *consumer = streamLookupConsumer(group,c->argv[3]->ptr,1);
|
streamConsumer *consumer = NULL;
|
||||||
void *arraylenptr = addReplyDeferredLen(c);
|
void *arraylenptr = addReplyDeferredLen(c);
|
||||||
size_t arraylen = 0;
|
size_t arraylen = 0;
|
||||||
for (int j = 5; j <= last_id_arg; j++) {
|
for (int j = 5; j <= last_id_arg; j++) {
|
||||||
@ -2298,6 +2298,8 @@ void xclaimCommand(client *c) {
|
|||||||
if (nack->consumer)
|
if (nack->consumer)
|
||||||
raxRemove(nack->consumer->pel,buf,sizeof(buf),NULL);
|
raxRemove(nack->consumer->pel,buf,sizeof(buf),NULL);
|
||||||
/* Update the consumer and idle time. */
|
/* Update the consumer and idle time. */
|
||||||
|
if (consumer == NULL)
|
||||||
|
consumer = streamLookupConsumer(group,c->argv[3]->ptr,1);
|
||||||
nack->consumer = consumer;
|
nack->consumer = consumer;
|
||||||
nack->delivery_time = deliverytime;
|
nack->delivery_time = deliverytime;
|
||||||
/* Set the delivery attempts counter if given, otherwise
|
/* Set the delivery attempts counter if given, otherwise
|
||||||
|
Loading…
x
Reference in New Issue
Block a user