From 9d8b993c51b7e4375d0de5be1fdbeace48c458e8 Mon Sep 17 00:00:00 2001 From: HHoflittlefish777 <77738092+HHoflittlefish777@users.noreply.github.com> Date: Sun, 8 Oct 2023 22:15:37 +0800 Subject: [PATCH] [fix](fs) fix remove error log failed (#25108) --- be/src/runtime/load_path_mgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/be/src/runtime/load_path_mgr.cpp b/be/src/runtime/load_path_mgr.cpp index 93fbeb7d92..2ae43934df 100644 --- a/be/src/runtime/load_path_mgr.cpp +++ b/be/src/runtime/load_path_mgr.cpp @@ -171,7 +171,7 @@ void LoadPathMgr::process_path(time_t now, const std::string& path, int64_t rese return; } LOG(INFO) << "Going to remove path. path=" << path; - Status status = io::global_local_filesystem()->delete_directory(path); + Status status = io::global_local_filesystem()->delete_directory_or_file(path); if (status.ok()) { LOG(INFO) << "Remove path success. path=" << path; } else {