You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by al...@apache.org on 2016/08/03 12:53:32 UTC
[7/7] mesos git commit: Ensured HierarchicalAllocatorProcess
specifies a process ID.
Ensured HierarchicalAllocatorProcess specifies a process ID.
Review: https://reviews.apache.org/r/50563/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/6f2a452d
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/6f2a452d
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/6f2a452d
Branch: refs/heads/master
Commit: 6f2a452d4876b2073ad552df88aa6e49f3e36a34
Parents: 45e79a4
Author: Gast�n Kleiman <ga...@mesosphere.com>
Authored: Wed Aug 3 14:32:22 2016 +0200
Committer: Alexander Rukletsov <al...@apache.org>
Committed: Wed Aug 3 14:32:22 2016 +0200
----------------------------------------------------------------------
src/master/allocator/mesos/hierarchical.hpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/6f2a452d/src/master/allocator/mesos/hierarchical.hpp
----------------------------------------------------------------------
diff --git a/src/master/allocator/mesos/hierarchical.hpp b/src/master/allocator/mesos/hierarchical.hpp
index b72ba16..bdbc6d3 100644
--- a/src/master/allocator/mesos/hierarchical.hpp
+++ b/src/master/allocator/mesos/hierarchical.hpp
@@ -75,8 +75,7 @@ public:
const std::function<Sorter*()>& _roleSorterFactory,
const std::function<Sorter*()>& _frameworkSorterFactory,
const std::function<Sorter*()>& _quotaRoleSorterFactory)
- : ProcessBase(process::ID::generate("hierarchical-allocator")),
- initialized(false),
+ : initialized(false),
paused(true),
metrics(*this),
roleSorter(nullptr),
@@ -485,7 +484,8 @@ class HierarchicalAllocatorProcess
{
public:
HierarchicalAllocatorProcess()
- : internal::HierarchicalAllocatorProcess(
+ : ProcessBase(process::ID::generate("hierarchical-allocator")),
+ internal::HierarchicalAllocatorProcess(
[this]() -> Sorter* {
return new RoleSorter(this->self(), "allocator/mesos/roles/");
},