Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unprotect rdb channel when bgsave child fails in dual channel replica…
…tion (#1297) If bgsaveerr is error, there is no need to protect the rdb channel. The impact of this may be that when bgsave fails, we will protect the rdb channel for 60s. It may occupy the reference of the repl buf block, making it impossible to recycle it until we free the client due to COB or free the client after 60s. We kept the RDB channel open as long as the replica hadn't established a main connection, even if the snapshot process failed. There is no value in keeping the RDB client in this case. Signed-off-by: Binbin <[email protected]>
- Loading branch information