Commit d2a6c5ff authored by antirez's avatar antirez
Browse files

Comment clearly why we moved some code in #6623.

parent 4024bc7e
...@@ -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];
......
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