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 2017/08/22 20:53:25 UTC
[5/8] mesos git commit: Use a consistent preprocessor check for
ENABLE_PORT_MAPPING_ISOLATOR.
Use a consistent preprocessor check for ENABLE_PORT_MAPPING_ISOLATOR.
There's no need to also check for Windows when testing the
ENABLE_PORT_MAPPING_ISOLATOR feature macro, because
ENABLE_PORT_MAPPING_ISOLATOR requires libnl3, which is a
Linux-specific features.
Review: https://reviews.apache.org/r/60901/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/16cbd203
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/16cbd203
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/16cbd203
Branch: refs/heads/master
Commit: 16cbd203bf5626ec1377a3b4ce772ce6dbaeb78a
Parents: 2505b77
Author: James Peach <jp...@apache.org>
Authored: Tue Aug 22 13:37:45 2017 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Tue Aug 22 13:37:45 2017 -0700
----------------------------------------------------------------------
src/slave/containerizer/mesos/containerizer.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/16cbd203/src/slave/containerizer/mesos/containerizer.cpp
----------------------------------------------------------------------
diff --git a/src/slave/containerizer/mesos/containerizer.cpp b/src/slave/containerizer/mesos/containerizer.cpp
index d92f326..5805dfb 100644
--- a/src/slave/containerizer/mesos/containerizer.cpp
+++ b/src/slave/containerizer/mesos/containerizer.cpp
@@ -420,8 +420,8 @@ Try<MesosContainerizer*> MesosContainerizer::create(
{"namespaces/pid", &NamespacesPidIsolatorProcess::create},
{"network/cni", &NetworkCniIsolatorProcess::create},
#endif // __linux__
- // NOTE: Network isolation is currently not supported on Windows builds.
-#if !defined(__WINDOWS__) && defined(ENABLE_PORT_MAPPING_ISOLATOR)
+
+#ifdef ENABLE_PORT_MAPPING_ISOLATOR
{"network/port_mapping", &PortMappingIsolatorProcess::create},
#endif