Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dataroaring committed Sep 20, 2023
1 parent acda97f commit 6f56748
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions be/src/olap/storage_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1393,10 +1393,10 @@ bool StorageEngine::add_broken_path(std::string path) {
bool StorageEngine::remove_broken_path(std::string path) {
std::lock_guard<std::mutex> lock(_broken_paths_mutex);
auto count = _broken_paths.erase(path);
if (count > 1) {
if (count > 0) {
_persist_broken_paths();
}
return count > 1;
return count > 0;
}

Status StorageEngine::_persist_broken_paths() {
Expand Down

0 comments on commit 6f56748

Please sign in to comment.