diff --git a/src/networking.c b/src/networking.c index 3e698cd58fc61e5fd4be835d4e1f7ac6b1332c34..edd7891d379dfe99328c8ad5dc74992de9ac38fc 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; }