Skip to content

Commit

Permalink
Prevent erroneous socket closure
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnSully committed Apr 5, 2024
1 parent 66be482 commit f886fce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3262,6 +3262,7 @@ void initMasterInfo(redisMaster *master)
master->repl_state = REPL_STATE_NONE;
master->repl_down_since = 0; /* Never connected, repl is down since EVER. */
master->mvccLastSync = 0;
master->repl_transfer_fd = -1;
}

void initServerConfig(void) {
Expand Down

0 comments on commit f886fce

Please sign in to comment.