diff --git a/src/replication.c b/src/replication.c index f00cb0334..553c81b9a 100644 --- a/src/replication.c +++ b/src/replication.c @@ -1261,6 +1261,7 @@ void replicationSetMaster(char *ip, int port) { cancelReplicationHandshake(); server.repl_state = REDIS_REPL_CONNECT; server.master_repl_offset = 0; + server.repl_down_since = 0; } /* Cancel replication, setting the instance as a master itself. */