mirror of
https://github.com/fluencelabs/redis
synced 2025-05-03 14:32:14 +00:00
Diskless replication: log BGSAVE delay only when it is non-zero.
This commit is contained in:
parent
bafd3f646f
commit
16319c69b1
@ -527,6 +527,7 @@ void syncCommand(redisClient *c) {
|
|||||||
* replicationCron() since we want to delay its start a
|
* replicationCron() since we want to delay its start a
|
||||||
* few seconds to wait for more slaves to arrive. */
|
* few seconds to wait for more slaves to arrive. */
|
||||||
c->replstate = REDIS_REPL_WAIT_BGSAVE_START;
|
c->replstate = REDIS_REPL_WAIT_BGSAVE_START;
|
||||||
|
if (server.repl_diskless_sync_delay)
|
||||||
redisLog(REDIS_NOTICE,"Delay next BGSAVE for SYNC");
|
redisLog(REDIS_NOTICE,"Delay next BGSAVE for SYNC");
|
||||||
} else {
|
} else {
|
||||||
/* Ok we don't have a BGSAVE in progress, let's start one. */
|
/* Ok we don't have a BGSAVE in progress, let's start one. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user