Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid double close on repl_transfer_fd (#1349)
The code is ok before 2de544c, but now we will set server.repl_transfer_fd right after dfd was initiated, and in here we have a double close error since dfd and server.repl_transfer_fd are the same fd. Also move the declaration of dfd/maxtries to a small scope to avoid the confusion since they are only used in this code. Signed-off-by: Binbin <[email protected]>
- Loading branch information