[fix](fs) fix remove error log failed (#25108)

This commit is contained in:
HHoflittlefish777
2023-10-08 22:15:37 +08:00
committed by GitHub
parent 7e9ffad933
commit 9d8b993c51

View File

@ -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 {