mirror of
https://github.com/fluencelabs/redis
synced 2025-05-01 21:42:13 +00:00
useless double if removed.
This commit is contained in:
parent
b0a2e34059
commit
b90314588f
@ -774,11 +774,10 @@ int processMultibulkBuffer(redisClient *c) {
|
|||||||
* avoiding a large copy of data. */
|
* avoiding a large copy of data. */
|
||||||
c->querybuf = sdsrange(c->querybuf,pos,-1);
|
c->querybuf = sdsrange(c->querybuf,pos,-1);
|
||||||
pos = 0;
|
pos = 0;
|
||||||
}
|
|
||||||
/* Hint the sds library about the amount of bytes this string is
|
/* Hint the sds library about the amount of bytes this string is
|
||||||
* going to contain. */
|
* going to contain. */
|
||||||
if (ll >= REDIS_MBULK_BIG_ARG)
|
|
||||||
c->querybuf = sdsMakeRoomFor(c->querybuf,ll+2);
|
c->querybuf = sdsMakeRoomFor(c->querybuf,ll+2);
|
||||||
|
}
|
||||||
c->bulklen = ll;
|
c->bulklen = ll;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user