From f886fce2d138084dfeeabc0d77338e844ea9e1d5 Mon Sep 17 00:00:00 2001 From: John Sully Date: Fri, 5 Apr 2024 21:48:04 +0000 Subject: [PATCH] Prevent erroneous socket closure --- src/server.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server.cpp b/src/server.cpp index c9ac73e9f..c21d332fe 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -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) {