[prev in list] [next in list] [prev in thread] [next in thread]
List: mesos-commits
Subject: mesos git commit: Changed callbacks to take copies rather than references in monitor.
From: nnielsen () apache ! org
Date: 2015-05-27 19:55:44
Message-ID: 02be3493f0374493a02368861faa0844 () git ! apache ! org
[Download RAW message or body]
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 <nik@qni.dk>
Authored: Wed May 27 12:54:59 2015 -0700
Committer: Niklas Q. Nielsen <nik@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()
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic