DevinLeamy commented on code in PR #537:
URL: https://github.com/apache/mesos/pull/537#discussion_r1541237582


##########
src/slave/containerizer/mesos/paths.cpp:
##########
@@ -654,6 +654,30 @@ Option<ContainerID> parseCgroupPath(
   return current;
 }
 
+namespace cgroups2 {
+
+string agent(const string& root, bool leaf)
+{
+  if (leaf) { return path::join(root, "agent", "leaf"); }
+  else      { return path::join(root, "agent"); }

Review Comment:
   IMO this looks nicer than using the ternary operator or removing the `else`, 
because the paths line up. Ditto below.



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

Reply via email to