mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 00:50:50 +00:00
Fix a bug to delay bgsave while AOF rewrite in progress for replication
This commit is contained in:
parent
9424fe4580
commit
d982f44372
@ -676,7 +676,7 @@ void syncCommand(client *c) {
|
||||
/* Target is disk (or the slave is not capable of supporting
|
||||
* diskless replication) and we don't have a BGSAVE in progress,
|
||||
* let's start one. */
|
||||
if (server.aof_child_pid != -1) {
|
||||
if (server.aof_child_pid == -1) {
|
||||
startBgsaveForReplication(c->slave_capa);
|
||||
} else {
|
||||
serverLog(LL_NOTICE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user