mirror of
https://github.com/fluencelabs/redis
synced 2025-06-29 08:51:33 +00:00
Cluster: react faster when a slave wins an election.
This commit is contained in:
@ -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 ======================== */
|
||||
|
Reference in New Issue
Block a user