This is an automated email from the ASF dual-hosted git repository. yangzhg pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new eac5697b21 [Bug] Total capacity metrics was not updated after extending filesystem partition online (#11055) eac5697b21 is described below commit eac5697b216ec2396fb2251d9238191fe47e7286 Author: 超威蓝猫 <elves...@qq.com> AuthorDate: Wed Jul 27 09:23:23 2022 +0800 [Bug] Total capacity metrics was not updated after extending filesystem partition online (#11055) --- be/src/env/env_posix.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/be/src/env/env_posix.cpp b/be/src/env/env_posix.cpp index 5a841324fb..4f6243ae3e 100644 --- a/be/src/env/env_posix.cpp +++ b/be/src/env/env_posix.cpp @@ -742,9 +742,7 @@ Status PosixEnv::get_space_info(const std::string& path, int64_t* capacity, int6 try { std::filesystem::path path_name(path); std::filesystem::space_info path_info = std::filesystem::space(path_name); - if (*capacity <= 0) { - *capacity = path_info.capacity; - } + *capacity = path_info.capacity; *available = path_info.available; } catch (std::filesystem::filesystem_error& e) { RETURN_NOT_OK_STATUS_WITH_WARN( --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org