Best effort flush of slave buffers before SHUTDOWN.

This commit is contained in:
antirez
2015-11-09 17:26:56 +01:00
parent b719eedfc6
commit 87a12a6085
2 changed files with 14 additions and 1 deletions

View File

@ -1732,7 +1732,9 @@ void asyncCloseClientOnOutputBufferLimitReached(client *c) {
}
/* Helper function used by freeMemoryIfNeeded() in order to flush slaves
* output buffers without returning control to the event loop. */
* output buffers without returning control to the event loop.
* This is also called by SHUTDOWN for a best-effort attempt to send
* slaves the latest writes. */
void flushSlavesOutputBuffers(void) {
listIter li;
listNode *ln;