mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +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. */
|
||||
c->querybuf = sdsrange(c->querybuf,pos,-1);
|
||||
pos = 0;
|
||||
}
|
||||
/* Hint the sds library about the amount of bytes this string is
|
||||
* going to contain. */
|
||||
if (ll >= REDIS_MBULK_BIG_ARG)
|
||||
/* Hint the sds library about the amount of bytes this string is
|
||||
* going to contain. */
|
||||
c->querybuf = sdsMakeRoomFor(c->querybuf,ll+2);
|
||||
}
|
||||
c->bulklen = ll;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user