Skip to content

Commit

Permalink
drop host only when it registe heartbeat (#3739)
Browse files Browse the repository at this point in the history
  • Loading branch information
darionyaphet authored and Sophie-Xie committed Jan 22, 2022
1 parent 2fd67bc commit 8331896
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/meta/processors/zone/DropHostsProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,9 @@ void DropHostsProcessor::process(const cpp2::DropHostsReq& req) {
ret = hostExist(hostKey);
if (ret != nebula::cpp2::ErrorCode::SUCCEEDED) {
LOG(ERROR) << "The host " << host << " not existed!";
code = nebula::cpp2::ErrorCode::E_NO_HOSTS;
break;
} else {
holder->remove(std::move(hostKey));
}
holder->remove(std::move(hostKey));
}

if (code != nebula::cpp2::ErrorCode::SUCCEEDED) {
Expand Down

0 comments on commit 8331896

Please sign in to comment.