Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
37f68e61
Commit
37f68e61
authored
Nov 19, 2009
by
antirez
Browse files
writev() finally uncommented again
parent
b892cabe
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
37f68e61
...
@@ -1385,7 +1385,6 @@ static void sendReplyToClient(aeEventLoop *el, int fd, void *privdata, int mask)
...
@@ -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)
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment