You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2015/06/09 10:12:10 UTC

[2/2] mesos git commit: Update existing lambdas to meet style guide.

Update existing lambdas to meet style guide.

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


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

Branch: refs/heads/master
Commit: 919d405ac08959ec5676bfb47b4aaf6a90f70ac8
Parents: 16cf46a
Author: haosdent huang <ha...@gmail.com>
Authored: Tue Jun 9 01:09:04 2015 -0700
Committer: Benjamin Hindman <be...@gmail.com>
Committed: Tue Jun 9 01:11:55 2015 -0700

----------------------------------------------------------------------
 src/master/master.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/919d405a/src/master/master.cpp
----------------------------------------------------------------------
diff --git a/src/master/master.cpp b/src/master/master.cpp
index 5ed990e..e91e881 100644
--- a/src/master/master.cpp
+++ b/src/master/master.cpp
@@ -614,7 +614,9 @@ void Master::initialize()
   whitelistWatcher = new WhitelistWatcher(
       flags.whitelist,
       WHITELIST_WATCH_INTERVAL,
-      lambda::bind(&Allocator::updateWhitelist, allocator, lambda::_1));
+      [this](const Option<hashset<string>>& whitelist) {
+        return allocator->updateWhitelist(whitelist);
+      });
   spawn(whitelistWatcher);
 
   nextFrameworkId = 0;