You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2016/06/22 21:57:39 UTC

mesos git commit: Removed an unnecessary call to update() in the cgroups devices isolator.

Repository: mesos
Updated Branches:
  refs/heads/master 291c5e7d3 -> 4e54e81b7


Removed an unnecessary call to update() in the cgroups devices isolator.

The cgroups/devices isolator does not implement its own update() method,
so in its prepare(), we do not need to call update(), instead we should
directly return None() in the end.

Review: https://reviews.apache.org/r/49013/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/4e54e81b
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/4e54e81b
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/4e54e81b

Branch: refs/heads/master
Commit: 4e54e81b73cccbefde80dd7e2330936ec54fb2f2
Parents: 291c5e7
Author: Qian Zhang <zh...@cn.ibm.com>
Authored: Wed Jun 22 14:56:43 2016 -0700
Committer: Benjamin Mahler <bm...@apache.org>
Committed: Wed Jun 22 14:56:43 2016 -0700

----------------------------------------------------------------------
 src/slave/containerizer/mesos/isolators/cgroups/devices.cpp | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/4e54e81b/src/slave/containerizer/mesos/isolators/cgroups/devices.cpp
----------------------------------------------------------------------
diff --git a/src/slave/containerizer/mesos/isolators/cgroups/devices.cpp b/src/slave/containerizer/mesos/isolators/cgroups/devices.cpp
index 16f9628..66db4fc 100644
--- a/src/slave/containerizer/mesos/isolators/cgroups/devices.cpp
+++ b/src/slave/containerizer/mesos/isolators/cgroups/devices.cpp
@@ -291,10 +291,7 @@ Future<Option<ContainerLaunchInfo>> CgroupsDevicesIsolatorProcess::prepare(
     }
   }
 
-  return update(containerId, containerConfig.executor_info().resources())
-    .then([]() -> Future<Option<ContainerLaunchInfo>> {
-      return None();
-    });
+  return None();
 }