Commit e1c0a25c authored by antirez's avatar antirez
Browse files

Diskless replication: log BGSAVE delay only when it is non-zero.

parent fc486a58
......@@ -528,6 +528,7 @@ void syncCommand(redisClient *c) {
* replicationCron() since we want to delay its start a
* few seconds to wait for more slaves to arrive. */
c->replstate = REDIS_REPL_WAIT_BGSAVE_START;
if (server.repl_diskless_sync_delay)
redisLog(REDIS_NOTICE,"Delay next BGSAVE for SYNC");
} else {
/* Ok we don't have a BGSAVE in progress, let's start one. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment