Skip to content

Commit 094ee75

Browse files
rebasing
Signed-off-by: Sarthak Aggarwal <[email protected]>
1 parent 35cf64f commit 094ee75

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/networking.c

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3708,10 +3708,10 @@ static int parseClientFiltersOrReply(client *c, int index, clientFilter *filter)
37083708
return C_ERR;
37093709
}
37103710
index += 2;
3711-
} else if (!strcasecmp(c->argv[i]->ptr, "minidle") && moreargs) {
3711+
} else if (!strcasecmp(c->argv[index]->ptr, "minidle") && moreargs) {
37123712
long long tmp;
37133713

3714-
if (getLongLongFromObjectOrReply(c, c->argv[i + 1], &tmp,
3714+
if (getLongLongFromObjectOrReply(c, c->argv[index + 1], &tmp,
37153715
"minidle is not an integer or out of range") != C_OK)
37163716
return C_ERR;
37173717
if (tmp <= 0) {
@@ -3720,22 +3720,22 @@ static int parseClientFiltersOrReply(client *c, int index, clientFilter *filter)
37203720
}
37213721

37223722
filter->min_idle = tmp;
3723-
i += 2;
3724-
} else if (!strcasecmp(c->argv[i]->ptr, "flags") && moreargs) {
3725-
filter->flags = c->argv[i + 1]->ptr;
3726-
i += 2;
3727-
} else if (!strcasecmp(c->argv[i]->ptr, "name") && moreargs) {
3728-
filter->name = c->argv[i + 1]->ptr;
3729-
i += 2;
3730-
} else if (!strcasecmp(c->argv[i]->ptr, "pattern") && moreargs) {
3731-
filter->pattern = createObject(OBJ_STRING, sdsnew(c->argv[i + 1]->ptr));
3732-
i += 2;
3733-
} else if (!strcasecmp(c->argv[i]->ptr, "channel") && moreargs) {
3734-
filter->channel = createObject(OBJ_STRING, sdsnew(c->argv[i + 1]->ptr));
3735-
i += 2;
3736-
} else if (!strcasecmp(c->argv[i]->ptr, "shardchannel") && moreargs) {
3737-
filter->shard_channel = createObject(OBJ_STRING, sdsnew(c->argv[i + 1]->ptr));
3738-
i += 2;
3723+
index += 2;
3724+
} else if (!strcasecmp(c->argv[index]->ptr, "flags") && moreargs) {
3725+
filter->flags = c->argv[index + 1]->ptr;
3726+
index += 2;
3727+
} else if (!strcasecmp(c->argv[index]->ptr, "name") && moreargs) {
3728+
filter->name = c->argv[index + 1]->ptr;
3729+
index += 2;
3730+
} else if (!strcasecmp(c->argv[index]->ptr, "pattern") && moreargs) {
3731+
filter->pattern = createObject(OBJ_STRING, sdsnew(c->argv[index + 1]->ptr));
3732+
index += 2;
3733+
} else if (!strcasecmp(c->argv[index]->ptr, "channel") && moreargs) {
3734+
filter->channel = createObject(OBJ_STRING, sdsnew(c->argv[index + 1]->ptr));
3735+
index += 2;
3736+
} else if (!strcasecmp(c->argv[index]->ptr, "shardchannel") && moreargs) {
3737+
filter->shard_channel = createObject(OBJ_STRING, sdsnew(c->argv[index + 1]->ptr));
3738+
index += 2;
37393739
} else {
37403740
addReplyErrorObject(c, shared.syntaxerr);
37413741
return C_ERR;

0 commit comments

Comments
 (0)