From de5ca516aed4065e7b7e05d692996cfc028b0f32 Mon Sep 17 00:00:00 2001 From: "dejun.xdj" Date: Thu, 19 Jul 2018 20:48:08 +0800 Subject: [PATCH] Streams: ID of xclaim command starts from the sixth argument. --- src/t_stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }