From 6f567486112af9b9a114e4d36b97ed3a861250bf Mon Sep 17 00:00:00 2001 From: Yongqiang YANG Date: Wed, 20 Sep 2023 11:19:43 +0800 Subject: [PATCH] fix --- be/src/olap/storage_engine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/be/src/olap/storage_engine.cpp b/be/src/olap/storage_engine.cpp index 14b9984f0ca280..284d503783cc96 100644 --- a/be/src/olap/storage_engine.cpp +++ b/be/src/olap/storage_engine.cpp @@ -1393,10 +1393,10 @@ bool StorageEngine::add_broken_path(std::string path) { bool StorageEngine::remove_broken_path(std::string path) { std::lock_guard 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() {