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
ca5ccc58
Commit
ca5ccc58
authored
Aug 31, 2019
by
antirez
Browse files
Improve comment in flushSlavesOutputBuffers().
parent
0e9b5adb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
ca5ccc58
...
@@ -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
&&
...
...
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