XAUTOCLAIM: JUSTID should prevent incrementing delivery_count (#8724)

To align with XCLAIM and the XAUTOCLAIM docs
This commit is contained in:
guybe7 2021-03-30 22:48:01 +02:00 committed by GitHub
parent 1ac84a68c7
commit 7d01b47442

View File

@ -3121,6 +3121,8 @@ void xautoclaimCommand(client *c) {
/* Update the consumer and idle time. */
nack->delivery_time = now;
/* Increment the delivery attempts counter unless JUSTID option provided */
if (!justid)
nack->delivery_count++;
if (nack->consumer != consumer) {