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 2016/02/23 18:31:08 UTC
[2/2] mesos git commit: Used `size_t` instead of `int` to track
number of frameworks per role.
Used `size_t` instead of `int` to track number of frameworks per role.
Per informal project style, we prefer using `size_t` when representing
a count or the size of a collection.
Review: https://reviews.apache.org/r/43848/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/654b0df4
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/654b0df4
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/654b0df4
Branch: refs/heads/master
Commit: 654b0df41cf7e6425f0063f70e89671314a692e3
Parents: 2120e8f
Author: Neil Conway <ne...@gmail.com>
Authored: Tue Feb 23 09:30:03 2016 -0800
Committer: Benjamin Mahler <bm...@apache.org>
Committed: Tue Feb 23 09:30:03 2016 -0800
----------------------------------------------------------------------
src/master/allocator/mesos/hierarchical.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/654b0df4/src/master/allocator/mesos/hierarchical.hpp
----------------------------------------------------------------------
diff --git a/src/master/allocator/mesos/hierarchical.hpp b/src/master/allocator/mesos/hierarchical.hpp
index 0d39d3f..3043888 100644
--- a/src/master/allocator/mesos/hierarchical.hpp
+++ b/src/master/allocator/mesos/hierarchical.hpp
@@ -370,7 +370,7 @@ protected:
// Number of registered frameworks for each role. When a role's active
// count drops to zero, it is removed from this map; the role is also
// removed from `roleSorter` and its `frameworkSorter` is deleted.
- hashmap<std::string, int> activeRoles;
+ hashmap<std::string, size_t> activeRoles;
// Configured weight for each role, if any; if a role does not
// appear here, it has the default weight of 1.