You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by zt...@apache.org on 2016/03/04 02:57:51 UTC
incubator-hawq git commit: HAWQ-489. Fix missing errno for libhdfs
function call.
Repository: incubator-hawq
Updated Branches:
refs/heads/master 99c370b4f -> fcddeece6
HAWQ-489. Fix missing errno for libhdfs function call.
Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/fcddeece
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/fcddeece
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/fcddeece
Branch: refs/heads/master
Commit: fcddeece6f524e52d1092b71725d4c86bfd8d53d
Parents: 99c370b
Author: zhenglin tao <zh...@gmail.com>
Authored: Fri Mar 4 09:35:38 2016 +0800
Committer: zhenglin tao <zh...@gmail.com>
Committed: Fri Mar 4 09:35:38 2016 +0800
----------------------------------------------------------------------
src/backend/storage/file/fd.c | 9 +++++++++
1 file changed, 9 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/fcddeece/src/backend/storage/file/fd.c
----------------------------------------------------------------------
diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c
index 1037a66..627de95 100644
--- a/src/backend/storage/file/fd.c
+++ b/src/backend/storage/file/fd.c
@@ -2919,7 +2919,10 @@ HdfsFileSync(File file)
if (HdfsSync(VfdCache[file].hProtocol, VfdCache[file].hFS,
VfdCache[file].hFile))
+ {
+ errno = EIO;
return -1;
+ }
}
return 0;
}
@@ -2949,7 +2952,10 @@ HdfsRemovePath(FileName fileName, int recursive)
return -1;
if (HdfsDelete(protocol, fs, path, recursive))
+ {
+ errno = EIO;
return -1;
+ }
return 0;
}
@@ -3023,7 +3029,10 @@ HdfsFileTruncate(File file, int64 offset)
return -1;
if (0 != HdfsTruncate(protocol, fs, path, offset))
+ {
+ errno = EIO;
return -1;
+ }
pfree(protocol);
/*