hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ztao1...@apache.org
Subject incubator-hawq git commit: HAWQ-489. Fix missing errno for libhdfs function call.
Date Fri, 04 Mar 2016 01:57:51 GMT
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 <zhenglin.taozl@gmail.com>
Authored: Fri Mar 4 09:35:38 2016 +0800
Committer: zhenglin tao <zhenglin.taozl@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);
 	/*


Mime
View raw message