mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
Diskless replication: log BGSAVE delay only when it is non-zero.
This commit is contained in:
parent
3b9a97984a
commit
a27befc495
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user