]> git.saurik.com Git - redis.git/commitdiff
writev() finally uncommented again
authorantirez <antirez@gmail.com>
Thu, 19 Nov 2009 18:04:54 +0000 (19:04 +0100)
committerantirez <antirez@gmail.com>
Thu, 19 Nov 2009 18:04:54 +0000 (19:04 +0100)
redis.c

diff --git a/redis.c b/redis.c
index df3b413192bc98cda7c2460968fdb7e37eb785ca..a45f28314a3caec5615c1c46e7939c85379b388b 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -1385,7 +1385,6 @@ static void sendReplyToClient(aeEventLoop *el, int fd, void *privdata, int mask)
 
 
     /* Use writev() if we have enough buffers to send */
-    #if 0
     if (!server.glueoutputbuf &&
         listLength(c->reply) > REDIS_WRITEV_THRESHOLD && 
         !(c->flags & REDIS_MASTER))
@@ -1393,7 +1392,6 @@ static void sendReplyToClient(aeEventLoop *el, int fd, void *privdata, int mask)
         sendReplyToClientWritev(el, fd, privdata, mask);
         return;
     }
-    #endif
 
     while(listLength(c->reply)) {
         if (server.glueoutputbuf && listLength(c->reply) > 1)