diff --git a/src/protocol/network_server.cpp b/src/protocol/network_server.cpp index cc131dcd..b398d67f 100644 --- a/src/protocol/network_server.cpp +++ b/src/protocol/network_server.cpp @@ -832,6 +832,7 @@ static void on_health_check_done(pb::StoreRes* response, brpc::Controller* cntl, std::unique_ptr response_guard(response); std::unique_ptr cntl_guard(cntl); pb::Status new_status = pb::NORMAL; + old_status = SchemaFactory::get_instance()->get_instance_status(addr).status; if (cntl->Failed()) { if (cntl->ErrorCode() == brpc::ERPCTIMEDOUT || cntl->ErrorCode() == ETIMEDOUT) {