yiguolei commented on code in PR #39256:
URL: https://github.com/apache/doris/pull/39256#discussion_r1714190703


##########
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:
   这个跟直接返回 st.ok 有啥区别?



-- 
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]

Reply via email to