mesos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r1454636 - /incubator/mesos/branches/0.12.x/src/slave/monitor.cpp
Date Sat, 09 Mar 2013 01:20:14 GMT
Author: benh
Date: Sat Mar  9 01:20:12 2013
New Revision: 1454636

URL: http://svn.apache.org/r1454636
Log:
Fixed a bug in resource monitor to dispatch to IsolationModule::usage()
instead of invoking usage() directly.

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

Modified:
    incubator/mesos/branches/0.12.x/src/slave/monitor.cpp

Modified: incubator/mesos/branches/0.12.x/src/slave/monitor.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/branches/0.12.x/src/slave/monitor.cpp?rev=1454636&r1=1454635&r2=1454636&view=diff
==============================================================================
--- incubator/mesos/branches/0.12.x/src/slave/monitor.cpp (original)
+++ incubator/mesos/branches/0.12.x/src/slave/monitor.cpp Sat Mar  9 01:20:12 2013
@@ -179,13 +179,13 @@ void ResourceMonitorProcess::collect(
     return;
   }
 
-  isolation->usage(frameworkId, executorId).onAny(
-      defer(self(),
-            &Self::_collect,
-            lambda::_1,
-            frameworkId,
-            executorId,
-            interval));
+  dispatch(isolation, &IsolationModule::usage, frameworkId, executorId)
+    .onAny(defer(self(),
+                 &Self::_collect,
+                 lambda::_1,
+                 frameworkId,
+                 executorId,
+                 interval));
 }
 
 



Mime
View raw message