Skip to content

Commit

Permalink
Update src/replication.c
Browse files Browse the repository at this point in the history
Co-authored-by: Amit Nagler <[email protected]>
Signed-off-by: Binbin <[email protected]>
  • Loading branch information
enjoy-binbin and naglera authored Nov 13, 2024
1 parent 66eee5a commit 6abd6dd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/replication.c
Original file line number Diff line number Diff line change
Expand Up @@ -1745,10 +1745,8 @@ void updateReplicasWaitingBgsave(int bgsaveerr, int type) {
struct valkey_stat buf;

if (bgsaveerr != C_OK) {
if (replica->flag.protected_rdb_channel) {
/* If bgsaveerr is error, there is no need to protect the rdb channel. */
replica->flag.protected_rdb_channel = 0;
}
/* If bgsaveerr is error, there is no need to protect the rdb channel. */
replica->flag.protected_rdb_channel = 0;
freeClientAsync(replica);
serverLog(LL_WARNING, "SYNC failed. BGSAVE child returned an error");
continue;
Expand Down

0 comments on commit 6abd6dd

Please sign in to comment.