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 91f4f41665
commit 2c120af61e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {