Cluster: react faster when a slave wins an election.

This commit is contained in:
antirez
2013-09-26 16:54:43 +02:00
parent 42fa46e49a
commit 7c4b8f29e7
3 changed files with 46 additions and 16 deletions

View File

@ -1203,6 +1203,9 @@ void beforeSleep(struct aeEventLoop *eventLoop) {
/* Write the AOF buffer on disk */
flushAppendOnlyFile(0);
/* Call the Redis Cluster before sleep function. */
if (server.cluster_enabled) clusterBeforeSleep();
}
/* =========================== Server initialization ======================== */