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 2017/07/11 01:38:58 UTC

[12/50] mesos git commit: Updated fetcher to use `enum class FollowSymlink`.

Updated fetcher to use `enum class FollowSymlink`.

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


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

Branch: refs/heads/master
Commit: 7fdd28ddddc3d3bb2675318066d74b28f4c4306b
Parents: 841f879
Author: Andrew Schwartzmeyer <an...@schwartzmeyer.com>
Authored: Fri Jul 7 12:41:50 2017 -0700
Committer: Joseph Wu <jo...@apache.org>
Committed: Mon Jul 10 17:15:33 2017 -0700

----------------------------------------------------------------------
 src/slave/containerizer/fetcher.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/7fdd28dd/src/slave/containerizer/fetcher.cpp
----------------------------------------------------------------------
diff --git a/src/slave/containerizer/fetcher.cpp b/src/slave/containerizer/fetcher.cpp
index 5163ec0..6a664e0 100644
--- a/src/slave/containerizer/fetcher.cpp
+++ b/src/slave/containerizer/fetcher.cpp
@@ -294,7 +294,8 @@ static Try<Bytes> fetchSize(
     return Error(path.error());
   }
   if (path.isSome()) {
-    Try<Bytes> size = os::stat::size(path.get(), os::stat::FOLLOW_SYMLINK);
+    Try<Bytes> size = os::stat::size(
+        path.get(), os::stat::FollowSymlink::FOLLOW_SYMLINK);
     if (size.isError()) {
       return Error("Could not determine file size for: '" + path.get() +
                      "', error: " + size.error());
@@ -1129,7 +1130,7 @@ Try<Nothing> FetcherProcess::Cache::adjust(
 
   Try<Bytes> size = os::stat::size(
       entry.get()->path().string(),
-      os::stat::DO_NOT_FOLLOW_SYMLINK);
+      os::stat::FollowSymlink::DO_NOT_FOLLOW_SYMLINK);
 
   if (size.isSome()) {
     off_t d = delta(size.get(), entry);