]> git.saurik.com Git - redis.git/blobdiff - src/networking.c
added mstime() to get UNIX time in milliseconds.
[redis.git] / src / networking.c
index 3e698cd58fc61e5fd4be835d4e1f7ac6b1332c34..edd7891d379dfe99328c8ad5dc74992de9ac38fc 100644 (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;
         }