You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by nn...@apache.org on 2015/05/27 21:55:44 UTC
mesos git commit: Changed callbacks to take copies rather than
references in monitor.
Repository: mesos
Updated Branches:
refs/heads/master d94cb9e78 -> 394fd1883
Changed callbacks to take copies rather than references in monitor.
Review: https://reviews.apache.org/r/34728
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/394fd188
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/394fd188
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/394fd188
Branch: refs/heads/master
Commit: 394fd1883dc5be1e784c2d2b8824029713e9d9bc
Parents: d94cb9e
Author: Niklas Nielsen <ni...@qni.dk>
Authored: Wed May 27 12:54:59 2015 -0700
Committer: Niklas Q. Nielsen <ni...@qni.dk>
Committed: Wed May 27 12:54:59 2015 -0700
----------------------------------------------------------------------
src/slave/monitor.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/394fd188/src/slave/monitor.cpp
----------------------------------------------------------------------
diff --git a/src/slave/monitor.cpp b/src/slave/monitor.cpp
index 12d478d..a5a52b1 100644
--- a/src/slave/monitor.cpp
+++ b/src/slave/monitor.cpp
@@ -123,14 +123,14 @@ Future<ResourceMonitor::Usage> ResourceMonitorProcess::usage(
containerId,
executorInfo,
lambda::_1))
- .onFailed([&containerId, &executorInfo](const string& failure) {
+ .onFailed([containerId, executorInfo](const string& failure) {
LOG(WARNING) << "Failed to get resource usage for "
<< " container " << containerId
<< " for executor " << executorInfo.executor_id()
<< " of framework " << executorInfo.framework_id()
<< ": " << failure;
})
- .onDiscarded([&containerId, &executorInfo]() {
+ .onDiscarded([containerId, executorInfo]() {
LOG(WARNING) << "Failed to get resource usage for "
<< " container " << containerId
<< " for executor " << executorInfo.executor_id()