Commit b719eedf authored by antirez's avatar antirez
Browse files

Use clientHasPendingReplies() in flushSlavesOutputBuffers()

The old version only flushed data to slaves if there were strings
pending in the client->reply list. Now also static buffers are flushed.
Does not help to free memory (which is the only use we have right now in
the fuction), but is more correct conceptually, and may be used in
other contexts.
parent 1b5d24eb
......@@ -1751,7 +1751,7 @@ void flushSlavesOutputBuffers(void) {
events = aeGetFileEvents(server.el,slave->fd);
if (events & AE_WRITABLE &&
slave->replstate == SLAVE_STATE_ONLINE &&
listLength(slave->reply))
clientHasPendingReplies(slave))
{
writeToClient(slave->fd,slave,0);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment