This is an automated email from the ASF dual-hosted git repository.

wangbo 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 0a4863e8597 fix mac compile (#25724)
0a4863e8597 is described below

commit 0a4863e859794f7783b63f18f328484f1e667424
Author: minghong <engle...@gmail.com>
AuthorDate: Mon Oct 30 18:50:53 2023 +0800

    fix mac compile (#25724)
---
 be/src/agent/cgroup_cpu_ctl.cpp    | 5 +++++
 be/src/io/fs/file_handle_cache.cpp | 1 +
 2 files changed, 6 insertions(+)

diff --git a/be/src/agent/cgroup_cpu_ctl.cpp b/be/src/agent/cgroup_cpu_ctl.cpp
index 4a9aed2bb0f..ee24b34e167 100644
--- a/be/src/agent/cgroup_cpu_ctl.cpp
+++ b/be/src/agent/cgroup_cpu_ctl.cpp
@@ -120,9 +120,14 @@ Status CgroupV1CpuCtl::add_thread_to_cgroup() {
     if (!_init_succ) {
         return Status::OK();
     }
+#if defined(__APPLE__)
+    //unsupported now
+    return Status::OK();
+#else
     int tid = static_cast<int>(syscall(SYS_gettid));
     std::string msg = "add thread " + std::to_string(tid) + " to group";
     std::lock_guard<std::shared_mutex> w_lock(_lock_mutex);
     return CgroupCpuCtl::write_cg_sys_file(_cgroup_v1_cpu_tg_task_file, tid, 
msg, true);
+#endif
 }
 } // namespace doris
diff --git a/be/src/io/fs/file_handle_cache.cpp 
b/be/src/io/fs/file_handle_cache.cpp
index 815be0f99bf..ab48125a780 100644
--- a/be/src/io/fs/file_handle_cache.cpp
+++ b/be/src/io/fs/file_handle_cache.cpp
@@ -21,6 +21,7 @@
 
 #include "io/fs/file_handle_cache.h"
 
+#include <thread>
 #include <tuple>
 
 #include "io/fs/err_utils.h"


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to