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 2019/10/04 19:23:46 UTC
[mesos] 01/04: Fixed master::Slave::hasExecutor performance issue.
This is an automated email from the ASF dual-hosted git repository.
bmahler pushed a commit to branch 1.6.x
in repository https://gitbox.apache.org/repos/asf/mesos.git
commit 86ce596a352ed7f6ebd87702c21d669d6c4be7af
Author: Benjamin Mahler <bm...@apache.org>
AuthorDate: Fri Oct 4 13:53:19 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 804de69..2e13e3e 100644
--- a/src/master/master.cpp
+++ b/src/master/master.cpp
@@ -12476,7 +12476,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);
}