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

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

commit 2b3a1feb4c3be8aafdbabdb041ff7dc083dc884e
Author: Benjamin Mahler <[email protected]>
AuthorDate: Fri Oct 4 13:53:52 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 42f88b6..19526b5 100644
--- a/src/master/master.cpp
+++ b/src/master/master.cpp
@@ -11763,7 +11763,7 @@ bool Slave::hasExecutor(const FrameworkID& frameworkId,
                         const ExecutorID& executorId) const
 {
   return executors.contains(frameworkId) &&
-    executors.get(frameworkId).get().contains(executorId);
+    executors.at(frameworkId).contains(executorId);
 }
 
 

Reply via email to