useless double if removed.

This commit is contained in:
antirez 2011-11-08 11:26:06 +01:00
parent b0a2e34059
commit b90314588f

View File

@ -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;
}