Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
b892cabe
Commit
b892cabe
authored
Nov 19, 2009
by
antirez
Browse files
redis-benchmark hopefully last bug with multi bulk reply fixed
parent
58cd7103
Changes
2
Show whitespace changes
Inline
Side-by-side
benchmark.c
View file @
b892cabe
...
...
@@ -365,9 +365,7 @@ static void createMissingClients(client c) {
sdsfree
(
new
->
obuf
);
new
->
obuf
=
sdsdup
(
c
->
obuf
);
if
(
config
.
randomkeys
)
randomizeClientKey
(
c
);
new
->
replytype
=
c
->
replytype
;
if
(
c
->
replytype
==
REPLY_BULK
)
new
->
readlen
=
-
1
;
prepareClientForReply
(
new
,
c
->
replytype
);
}
}
...
...
redis.c
View file @
b892cabe
...
...
@@ -1385,6 +1385,7 @@ 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))
...
...
@@ -1392,6 +1393,7 @@ 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)
...
...
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