Skip to content

Commit

Permalink
feat: store health check get old status when update
Browse files Browse the repository at this point in the history
  • Loading branch information
cyz-2023 committed Nov 20, 2024
1 parent 53d7fb4 commit feb37cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/protocol/network_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,7 @@ static void on_health_check_done(pb::StoreRes* response, brpc::Controller* cntl,
std::unique_ptr<pb::StoreRes> response_guard(response);
std::unique_ptr<brpc::Controller> 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) {
Expand Down

0 comments on commit feb37cf

Please sign in to comment.