mirror of
https://github.com/php-win-ext/phpredis.git
synced 2026-03-24 00:52:16 +01:00
Fix XAUTOCLAIM argc when sending COUNT
Add 2 to argc not 1 + count when sending a specific COUNT.
This commit is contained in:
committed by
Michael Grunder
parent
085d61ecfb
commit
0fe45d24d4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user