Fix XAUTOCLAIM argc when sending COUNT

Add 2 to argc not 1 + count when sending a specific COUNT.
This commit is contained in:
michael-grunder
2024-10-16 15:40:17 -07:00
committed by Michael Grunder
parent 085d61ecfb
commit 0fe45d24d4

View File

@@ -5795,7 +5795,7 @@ redis_xautoclaim_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
return FAILURE;
}
argc = 5 + (count > 0 ? 1 + count : 0) + justid;
argc = 5 + (count > 0 ? 2 : 0) + justid;
REDIS_CMD_INIT_SSTR_STATIC(&cmdstr, argc, "XAUTOCLAIM");
redis_cmd_append_sstr_key(&cmdstr, key, keylen, redis_sock, slot);