Skip to content

Commit

Permalink
remove unnecessary if from rollback mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
naglera committed Feb 21, 2024
1 parent b4868fb commit 93d0e47
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 @@ -3597,10 +3597,8 @@ int connectWithMaster(void) {
* Never call this function directly, use cancelReplicationHandshake() instead.
*/
void undoConnectWithMaster(void) {
if (server.repl_transfer_s) {
connClose(server.repl_transfer_s);
server.repl_transfer_s = NULL;
}
connClose(server.repl_transfer_s);
server.repl_transfer_s = NULL;
}

/* Abort the async download of the bulk dataset while SYNC-ing with master.
Expand Down

0 comments on commit 93d0e47

Please sign in to comment.