writev() finally uncommented again

This commit is contained in:
antirez 2009-11-19 19:04:54 +01:00
parent b892cabed4
commit 37f68e6102

View File

@ -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)