You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by jo...@apache.org on 2015/12/04 03:00:21 UTC

[2/3] mesos git commit: Quota: Properly initialized the allocator sorter for quota'ed roles.

Quota: Properly initialized the allocator sorter for quota'ed roles.

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


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

Branch: refs/heads/master
Commit: b9762afeb851662fc6122e177abf1c1a4f4921ae
Parents: 3135919
Author: Alexander Rukletsov <ru...@gmail.com>
Authored: Thu Dec 3 20:28:04 2015 -0500
Committer: Joris Van Remoortere <jo...@gmail.com>
Committed: Thu Dec 3 20:37:53 2015 -0500

----------------------------------------------------------------------
 src/master/allocator/mesos/hierarchical.cpp | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/b9762afe/src/master/allocator/mesos/hierarchical.cpp
----------------------------------------------------------------------
diff --git a/src/master/allocator/mesos/hierarchical.cpp b/src/master/allocator/mesos/hierarchical.cpp
index b922647..e6be2d7 100644
--- a/src/master/allocator/mesos/hierarchical.cpp
+++ b/src/master/allocator/mesos/hierarchical.cpp
@@ -210,6 +210,7 @@ void HierarchicalAllocatorProcess::recover(
   // Setup recovery timer.
   delay(ALLOCATION_HOLD_OFF_RECOVERY_TIMEOUT, self(), &Self::resume);
 
+  // NOTE: `quotaRoleSorter` is updated implicitly in `setQuota()`.
   foreachpair (const string& role, const Quota& quota, quotas) {
     setQuota(role, quota.info);
   }