This is an automated email from the ASF dual-hosted git repository.

bmahler pushed a commit to branch 1.8.x
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit 9a849dd570c53e21ae8d952f8d581691ccbd7b1e
Author: Benjamin Mahler <[email protected]>
AuthorDate: Fri Oct 4 13:51:34 2019 -0400

    Fixed master::Slave::hasExecutor performance issue.
    
    This is a backport of the broader fix in MESOS-9948.
---
 src/master/master.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/master/master.cpp b/src/master/master.cpp
index c9b0a38..bda98e3 100644
--- a/src/master/master.cpp
+++ b/src/master/master.cpp
@@ -13469,7 +13469,7 @@ bool Slave::hasExecutor(const FrameworkID& frameworkId,
                         const ExecutorID& executorId) const
 {
   return executors.contains(frameworkId) &&
-    executors.get(frameworkId)->contains(executorId);
+    executors.at(frameworkId).contains(executorId);
 }
 
 

Reply via email to