Commit d982f443 authored by Qu Chen's avatar Qu Chen Committed by antirez
Browse files

Fix a bug to delay bgsave while AOF rewrite in progress for replication

parent 9424fe45
...@@ -676,7 +676,7 @@ void syncCommand(client *c) { ...@@ -676,7 +676,7 @@ void syncCommand(client *c) {
/* Target is disk (or the slave is not capable of supporting /* Target is disk (or the slave is not capable of supporting
* diskless replication) and we don't have a BGSAVE in progress, * diskless replication) and we don't have a BGSAVE in progress,
* let's start one. */ * let's start one. */
if (server.aof_child_pid != -1) { if (server.aof_child_pid == -1) {
startBgsaveForReplication(c->slave_capa); startBgsaveForReplication(c->slave_capa);
} else { } else {
serverLog(LL_NOTICE, serverLog(LL_NOTICE,
......
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