summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-08-31 14:40:09 +0200
committerantirez <antirez@gmail.com>2019-09-25 11:50:07 +0200
commit7f289c3b92bcd2b357d63ad1f76ede6afb3fdc08 (patch)
tree8400f200b66160cf651cd5602646ca8a225ea5bb
parent7ab62d4b925581180f9e80639154536872b8edae (diff)
downloadredis-7f289c3b92bcd2b357d63ad1f76ede6afb3fdc08.tar.gz
Improve comment in flushSlavesOutputBuffers().
-rw-r--r--src/networking.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/networking.c b/src/networking.c
index c21bc8a52..957411b60 100644
--- a/src/networking.c
+++ b/src/networking.c
@@ -2149,7 +2149,8 @@ void flushSlavesOutputBuffers(void) {
* case the writable event is never installed, since the purpose
* 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
- * writes before the first ACK. */
+ * writes before the first ACK (to know the reason, grep for this
+ * flag in this file). */
if (slave->replstate == SLAVE_STATE_ONLINE &&
!slave->repl_put_online_on_ack &&
clientHasPendingReplies(slave))