You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ti...@apache.org on 2016/06/21 18:31:42 UTC

mesos git commit: Removed dangling reference error in a lambda capture.

Repository: mesos
Updated Branches:
  refs/heads/master 56503ea65 -> 54b82e571


Removed dangling reference error in a lambda capture.

Capturing function parameters by reference in a lambda was causing
a crash in certain situations.

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


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

Branch: refs/heads/master
Commit: 54b82e5713243f44e7e2a617f53bce872381b36a
Parents: 56503ea
Author: Alexander Rojas <al...@mesosphere.io>
Authored: Tue Jun 21 20:29:00 2016 +0200
Committer: Till Toenshoff <to...@me.com>
Committed: Tue Jun 21 20:29:00 2016 +0200

----------------------------------------------------------------------
 src/slave/slave.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/54b82e57/src/slave/slave.cpp
----------------------------------------------------------------------
diff --git a/src/slave/slave.cpp b/src/slave/slave.cpp
index 4992aef..b41f46b 100644
--- a/src/slave/slave.cpp
+++ b/src/slave/slave.cpp
@@ -5441,7 +5441,7 @@ Future<bool> Slave::authorizeSandboxAccess(
 
   return sandboxApprover
     .then(defer(self(),
-        [this, &frameworkId, &executorId]
+        [this, frameworkId, executorId]
             (const Owned<ObjectApprover>& sandboxApprover)
             -> Future<bool> {
         // Construct authorization object.