Commit ca5ccc58 authored by antirez's avatar antirez
Browse files

Improve comment in flushSlavesOutputBuffers().

parent 0e9b5adb
...@@ -2475,7 +2475,8 @@ void flushSlavesOutputBuffers(void) { ...@@ -2475,7 +2475,8 @@ void flushSlavesOutputBuffers(void) {
* case the writable event is never installed, since the purpose * case the writable event is never installed, since the purpose
* of put_online_on_ack is to postpone the moment it is installed. * of put_online_on_ack is to postpone the moment it is installed.
* This is what we want since slaves in this state should not receive * This is what we want since slaves in this state should not receive
* writes before the first ACK. */ * writes before the first ACK (to know the reason, grep for this
* flag in this file). */
events = aeGetFileEvents(server.el,slave->fd); events = aeGetFileEvents(server.el,slave->fd);
if (events & AE_WRITABLE && if (events & AE_WRITABLE &&
slave->replstate == SLAVE_STATE_ONLINE && slave->replstate == SLAVE_STATE_ONLINE &&
......
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