diff options
author | antirez <antirez@gmail.com> | 2014-10-27 10:48:32 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-10-27 10:48:39 +0100 |
commit | a27befc495009693ee4c9c110fe7132f330ac25d (patch) | |
tree | 0988d796691952ae46f8ab9b324be2d48dd54ff0 /src/replication.c | |
parent | 3b9a97984a85e342cc11459a5a75b2cf80d79c08 (diff) | |
download | redis-a27befc495009693ee4c9c110fe7132f330ac25d.tar.gz |
Diskless replication: log BGSAVE delay only when it is non-zero.
Diffstat (limited to 'src/replication.c')
-rw-r--r-- | src/replication.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/replication.c b/src/replication.c index 0b40110a6..e9c98c5c6 100644 --- a/src/replication.c +++ b/src/replication.c @@ -528,7 +528,8 @@ 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; - redisLog(REDIS_NOTICE,"Delay next BGSAVE for SYNC"); + 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. */ if (startBgsaveForReplication() != REDIS_OK) { |