mirror of
https://github.com/fluencelabs/redis
synced 2025-06-15 18:21:21 +00:00
Diskless sync delay is now configurable.
This commit is contained in:
@ -1869,9 +1869,9 @@ void replicationCron(void) {
|
||||
}
|
||||
}
|
||||
|
||||
if (slaves_waiting && max_idle > REDIS_DEFAULT_REPL_DISKLESS_SYNC_DELAY)
|
||||
{
|
||||
/* Let's start a BGSAVE with disk target. */
|
||||
if (slaves_waiting && max_idle > server.repl_diskless_sync_delay) {
|
||||
/* Start a BGSAVE. Usually with socket target, or with disk target
|
||||
* if there was a recent socket -> disk config change. */
|
||||
if (startBgsaveForReplication() == REDIS_OK) {
|
||||
/* It started! We need to change the state of slaves
|
||||
* from WAIT_BGSAVE_START to WAIT_BGSAVE_END. */
|
||||
|
Reference in New Issue
Block a user