This is an automated email from the ASF dual-hosted git repository.
abudnik pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git
The following commit(s) were added to refs/heads/master by this push:
new f2bedda Fixed compilation error on Mac OS.
f2bedda is described below
commit f2beddaf04b82c7bf89b4abc6a8f76ab7e41705b
Author: Andrei Budnik <[email protected]>
AuthorDate: Fri Jun 7 18:02:01 2019 +0200
Fixed compilation error on Mac OS.
This patch adds missing switch case to fix compilation error introduced
in `bc5a57122635`.
Review: https://reviews.apache.org/r/70811
---
src/slave/containerizer/mesos/launch.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/slave/containerizer/mesos/launch.cpp
b/src/slave/containerizer/mesos/launch.cpp
index a69a688..b29ec55 100644
--- a/src/slave/containerizer/mesos/launch.cpp
+++ b/src/slave/containerizer/mesos/launch.cpp
@@ -496,8 +496,8 @@ static Try<Nothing> executeFileOperation(const
ContainerFileOperation& op)
return Nothing();
}
-#ifdef __linux__
case ContainerFileOperation::MOUNT: {
+#ifdef __linux__
Try<Nothing> result = mountContainerFilesystem(op.mount());
if (result.isError()) {
return Error(
@@ -506,8 +506,10 @@ static Try<Nothing> executeFileOperation(const
ContainerFileOperation& op)
}
return Nothing();
- }
+#else
+ return Error("Container mount is not supported on non-Linux systems");
#endif // __linux__
+ }
case ContainerFileOperation::RENAME: {
Try<Nothing> result =