summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordejun.xdj <dejun.xdj@alibaba-inc.com>2018-07-19 20:48:08 +0800
committerdejun.xdj <dejun.xdj@alibaba-inc.com>2018-07-19 20:48:08 +0800
commitde5ca516aed4065e7b7e05d692996cfc028b0f32 (patch)
treeb02385add4281b41adc24bb648f54a7871b67c3d
parent1c95c075966407729648fe676883a75be638824c (diff)
downloadredis-de5ca516aed4065e7b7e05d692996cfc028b0f32.tar.gz
Streams: ID of xclaim command starts from the sixth argument.
-rw-r--r--src/t_stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/t_stream.c b/src/t_stream.c
index 201509c7e..abef73c43 100644
--- a/src/t_stream.c
+++ b/src/t_stream.c
@@ -1988,7 +1988,7 @@ void xclaimCommand(client *c) {
* the client successfully claimed some message, so it should be
* executed in a "all or nothing" fashion. */
int j;
- for (j = 4; j < c->argc; j++) {
+ for (j = 5; j < c->argc; j++) {
streamID id;
if (streamParseIDOrReply(NULL,c->argv[j],&id,0) != C_OK) break;
}