Unverified Commit 2c120af6 authored by guybe7's avatar guybe7 Committed by GitHub
Browse files

XAUTOCLAIM: JUSTID should prevent incrementing delivery_count (#8724)

To align with XCLAIM and the XAUTOCLAIM docs
parent 91f4f416
......@@ -3121,7 +3121,9 @@ void xautoclaimCommand(client *c) {
/* Update the consumer and idle time. */
nack->delivery_time = now;
nack->delivery_count++;
/* Increment the delivery attempts counter unless JUSTID option provided */
if (!justid)
nack->delivery_count++;
if (nack->consumer != consumer) {
/* Add the entry in the new consumer local PEL. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment