X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/b0a2e34059b4b442a25fc7e25afde39706ad9034..2c2b20853724d86eaa6c51308f11645cc576dc1c:/src/networking.c diff --git a/src/networking.c b/src/networking.c index 3e698cd5..edd7891d 100644 --- a/src/networking.c +++ b/src/networking.c @@ -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; }