summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2018-08-03 13:45:27 +0200
committerGitHub <noreply@github.com>2018-08-03 13:45:27 +0200
commit39c70e728b5af0c50989ffbc05e568099f3e081b (patch)
tree163c751a0ad0d6490e9be38e15bacc41357426a6
parent7b5e7f3ed0978d695cc1fc8e24f16cf0f5c3f754 (diff)
parentde5ca516aed4065e7b7e05d692996cfc028b0f32 (diff)
downloadredis-39c70e728b5af0c50989ffbc05e568099f3e081b.tar.gz
Merge pull request #5146 from 0xtonyxia/fix-xclaim-id-parse
Streams: ID of xclaim command should start 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;
}