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
d2a6c5ff
You need to sign in or sign up before continuing.
Commit
d2a6c5ff
authored
Apr 29, 2020
by
antirez
Browse files
Comment clearly why we moved some code in #6623.
parent
4024bc7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
d2a6c5ff
...
@@ -2124,7 +2124,10 @@ void beforeSleep(struct aeEventLoop *eventLoop) {
...
@@ -2124,7 +2124,10 @@ void beforeSleep(struct aeEventLoop *eventLoop) {
processUnblockedClients();
processUnblockedClients();
/* Send all the slaves an ACK request if at least one client blocked
/* Send all the slaves an ACK request if at least one client blocked
* during the previous event loop iteration. */
* during the previous event loop iteration. Note that we do this after
* processUnblockedClients(), so if there are multiple pipelined WAITs
* and the just unblocked WAIT gets blocked again, we don't have to wait
* a server cron cycle in absence of other event loop events. See #6623. */
if (server.get_ack_from_slaves) {
if (server.get_ack_from_slaves) {
robj *argv[3];
robj *argv[3];
...
...
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