mirror of
https://github.com/fluencelabs/redis
synced 2025-06-26 15:31:33 +00:00
writev() finally uncommented again
This commit is contained in:
2
redis.c
2
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 */
|
/* Use writev() if we have enough buffers to send */
|
||||||
#if 0
|
|
||||||
if (!server.glueoutputbuf &&
|
if (!server.glueoutputbuf &&
|
||||||
listLength(c->reply) > REDIS_WRITEV_THRESHOLD &&
|
listLength(c->reply) > REDIS_WRITEV_THRESHOLD &&
|
||||||
!(c->flags & REDIS_MASTER))
|
!(c->flags & REDIS_MASTER))
|
||||||
@ -1393,7 +1392,6 @@ static void sendReplyToClient(aeEventLoop *el, int fd, void *privdata, int mask)
|
|||||||
sendReplyToClientWritev(el, fd, privdata, mask);
|
sendReplyToClientWritev(el, fd, privdata, mask);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
while(listLength(c->reply)) {
|
while(listLength(c->reply)) {
|
||||||
if (server.glueoutputbuf && listLength(c->reply) > 1)
|
if (server.glueoutputbuf && listLength(c->reply) > 1)
|
||||||
|
Reference in New Issue
Block a user