Skip to content

Commit

Permalink
minor bug for adminTaskManager (#5195)
Browse files Browse the repository at this point in the history
  • Loading branch information
liwenhui-soul authored and Sophie-Xie committed Jan 28, 2023
1 parent aa8bde0 commit f840eea
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/storage/admin/AdminTaskManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void AdminTaskManager::handleUnreportedTasks() {
jId,
tId,
fut.value().status().toString());
if (fut.value().status() == Status::Error("Space not existed!")) {
if (fut.value().status() == Status::SpaceNotFound("Space not existed!")) {
// space has been dropped, remove the task status.
keys.emplace_back(key.data(), key.size());
} else {
Expand All @@ -135,13 +135,10 @@ void AdminTaskManager::handleUnreportedTasks() {
jId,
tId,
apache::thrift::util::enumNameSafe(rc));
if (rc == nebula::cpp2::ErrorCode::E_LEADER_CHANGED ||
rc == nebula::cpp2::ErrorCode::E_STORE_FAILURE) {
ifAnyUnreported_ = true;
continue;
} else {
if (rc == nebula::cpp2::ErrorCode::SUCCEEDED) {
keys.emplace_back(key.data(), key.size());
break;
} else {
ifAnyUnreported_ = true;
}
}
env_->adminStore_->multiRemove(keys);
Expand Down

0 comments on commit f840eea

Please sign in to comment.