You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by mp...@apache.org on 2016/11/02 16:30:44 UTC
mesos git commit: Avoided needless copy inside `foreach` loop.
Repository: mesos
Updated Branches:
refs/heads/master 316833b9d -> 2e92da6d8
Avoided needless copy inside `foreach` loop.
Review: https://reviews.apache.org/r/53269/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/2e92da6d
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/2e92da6d
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/2e92da6d
Branch: refs/heads/master
Commit: 2e92da6d8b71bdcaccb5207839e640f96ff45ef9
Parents: 316833b
Author: Neil Conway <ne...@gmail.com>
Authored: Wed Nov 2 01:19:50 2016 -0700
Committer: Michael Park <mp...@apache.org>
Committed: Wed Nov 2 09:21:45 2016 -0700
----------------------------------------------------------------------
src/master/registrar.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/2e92da6d/src/master/registrar.cpp
----------------------------------------------------------------------
diff --git a/src/master/registrar.cpp b/src/master/registrar.cpp
index 529013f..d7134ee 100644
--- a/src/master/registrar.cpp
+++ b/src/master/registrar.cpp
@@ -453,7 +453,7 @@ void RegistrarProcess::update()
slaveIDs.insert(slave.info().id());
}
- foreach (Owned<Operation> operation, operations) {
+ foreach (Owned<Operation>& operation, operations) {
// No need to process the result of the operation.
(*operation)(®istry, &slaveIDs);
}