You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2016/09/27 01:30:03 UTC
[2/7] mesos git commit: Changed the nested ContainerID from hashmap
to hashset in memory.
Changed the nested ContainerID from hashmap to hashset in memory.
To support nested containers, each container should maintain a list
of its children containers in structure. The tree-like structure is
not necessary though. We just need to keep a flat hashset for nested
containers.
Review: https://reviews.apache.org/r/51668/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/83a6075c
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/83a6075c
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/83a6075c
Branch: refs/heads/master
Commit: 83a6075c0b840b4dc02cb1920e939406d7eb5d03
Parents: c31887f
Author: Gilbert Song <so...@gmail.com>
Authored: Mon Sep 26 17:16:48 2016 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Mon Sep 26 17:16:48 2016 -0700
----------------------------------------------------------------------
src/slave/containerizer/mesos/containerizer.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/83a6075c/src/slave/containerizer/mesos/containerizer.hpp
----------------------------------------------------------------------
diff --git a/src/slave/containerizer/mesos/containerizer.hpp b/src/slave/containerizer/mesos/containerizer.hpp
index cf0ec67..f41fd97 100644
--- a/src/slave/containerizer/mesos/containerizer.hpp
+++ b/src/slave/containerizer/mesos/containerizer.hpp
@@ -337,7 +337,7 @@ private:
process::Sequence sequence;
// Containers nested under this container.
- hashmap<ContainerID, process::Owned<Container>> containers;
+ hashset<ContainerID> containers;
};
hashmap<ContainerID, process::Owned<Container>> containers_;