Skip to content

Commit 0fe45d2

Browse files
committedOct 17, 2024·
Fix XAUTOCLAIM argc when sending COUNT
Add 2 to argc not 1 + count when sending a specific COUNT.
1 parent 085d61e commit 0fe45d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎redis_commands.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -5795,7 +5795,7 @@ redis_xautoclaim_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
57955795
return FAILURE;
57965796
}
57975797

5798-
argc = 5 + (count > 0 ? 1 + count : 0) + justid;
5798+
argc = 5 + (count > 0 ? 2 : 0) + justid;
57995799

58005800
REDIS_CMD_INIT_SSTR_STATIC(&cmdstr, argc, "XAUTOCLAIM");
58015801
redis_cmd_append_sstr_key(&cmdstr, key, keylen, redis_sock, slot);

0 commit comments

Comments
 (0)
Please sign in to comment.