You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by da...@apache.org on 2016/12/12 23:41:52 UTC

kudu git commit: Fix build on macOS

Repository: kudu
Updated Branches:
  refs/heads/master 9e72f055b -> c2c76b4c8


Fix build on macOS

Change-Id: Idaf9867c064258cf16c5897dfa4e5b99640948a8
Reviewed-on: http://gerrit.cloudera.org:8080/5482
Reviewed-by: Alexey Serbin <as...@cloudera.com>
Tested-by: Kudu Jenkins


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

Branch: refs/heads/master
Commit: c2c76b4c8a75d5563feecbb68fbcace8eb8b6ca2
Parents: 9e72f05
Author: Dan Burkert <da...@apache.org>
Authored: Mon Dec 12 15:17:06 2016 -0800
Committer: Dan Burkert <da...@apache.org>
Committed: Mon Dec 12 23:41:35 2016 +0000

----------------------------------------------------------------------
 src/kudu/util/env_posix.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/c2c76b4c/src/kudu/util/env_posix.cc
----------------------------------------------------------------------
diff --git a/src/kudu/util/env_posix.cc b/src/kudu/util/env_posix.cc
index 2d3b6a0..2516f61 100644
--- a/src/kudu/util/env_posix.cc
+++ b/src/kudu/util/env_posix.cc
@@ -439,7 +439,7 @@ class PosixWritableFile : public WritableFile {
       return IOError(filename_, errno);
     }
 #else
-    if (mode == Env::FLUSH_SYNC && fsync(fd_) < 0) {
+    if (mode == FLUSH_SYNC && fsync(fd_) < 0) {
       return IOError(filename_, errno);
     }
 #endif
@@ -658,7 +658,7 @@ class PosixRWFile : public RWFile {
       return IOError(filename_, errno);
     }
 #else
-    if (mode == Env::FLUSH_SYNC && fsync(fd_) < 0) {
+    if (mode == FLUSH_SYNC && fsync(fd_) < 0) {
       return IOError(filename_, errno);
     }
 #endif