summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordejun.xdj <dejun.xdj@alibaba-inc.com>2018-07-19 20:48:08 +0800
committerantirez <antirez@gmail.com>2018-08-29 12:28:09 +0200
commitb59f04a099ec9fbfb9a1adc25e80dd6113198a00 (patch)
tree6a0101b60e19bf33744a05cc487a7438b86b9f48
parenta3f2437bddfebe7a3969069e539703dc6f2fbfad (diff)
downloadredis-b59f04a099ec9fbfb9a1adc25e80dd6113198a00.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 d31563217..77fbf4645 100644
--- a/src/t_stream.c
+++ b/src/t_stream.c
@@ -2015,7 +2015,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 (streamParseStrictIDOrReply(NULL,c->argv[j],&id,0) != C_OK) break;
}