Skip to content

Commit

Permalink
minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
liwenhui-soul committed Jan 5, 2023
1 parent 58e6f4f commit 409be35
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 409be35

Please sign in to comment.