xinyiZzz commented on code in PR #39256:
URL: https://github.com/apache/doris/pull/39256#discussion_r1714604774
##########
be/src/util/cgroup_util.cpp:
##########
@@ -40,7 +37,25 @@ using std::pair;
namespace doris {
-Status CGroupUtil::find_global_cgroup(const string& subsystem, string* path) {
+bool CGroupUtil::cgroupsv1_enable() {
+ bool exists = true;
+ Status st = io::global_local_filesystem()->exists("/proc/cgroups",
&exists);
+ return st.ok() && exists;
Review Comment:
不清楚。。,当初 morningman 这么设计的。。可能 std::filesystem::exists 有啥行为

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]