You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2017/05/26 23:29:58 UTC

[5/6] mesos git commit: Avoided use of [] operator for read only map access.

Avoided use of [] operator for read only map access.

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


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

Branch: refs/heads/master
Commit: 5c178b34fb15871779c7c1f6e093ef133f1a8d2a
Parents: 610321a
Author: Benjamin Mahler <bm...@apache.org>
Authored: Thu May 25 16:52:29 2017 -0700
Committer: Benjamin Mahler <bm...@apache.org>
Committed: Fri May 26 16:29:44 2017 -0700

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


http://git-wip-us.apache.org/repos/asf/mesos/blob/5c178b34/src/slave/slave.cpp
----------------------------------------------------------------------
diff --git a/src/slave/slave.cpp b/src/slave/slave.cpp
index 6a2f521..bd84bc5 100644
--- a/src/slave/slave.cpp
+++ b/src/slave/slave.cpp
@@ -4010,7 +4010,7 @@ void Slave::reregisterExecutor(
     return;
   }
 
-  Framework* framework = frameworks[frameworkId];
+  Framework* framework = frameworks.at(frameworkId);
 
   CHECK(framework->state == Framework::RUNNING ||
         framework->state == Framework::TERMINATING)