mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
redis-benchmark hopefully last bug with multi bulk reply fixed
This commit is contained in:
parent
58cd710344
commit
b892cabed4
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
2
redis.c
2
redis.c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user