hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hubertzh...@apache.org
Subject incubator-hawq git commit: HAWQ-298. Double check hdfs length longer than metadata logic length.
Date Thu, 31 Dec 2015 08:17:03 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 35acf7539 -> d8c1a691f


HAWQ-298. Double check hdfs length longer than metadata logic length.


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

Branch: refs/heads/master
Commit: d8c1a691f5371524caecc9f5fefc9cec740da363
Parents: 35acf75
Author: hubertzhang <hzhang@pivotal.io>
Authored: Thu Dec 31 16:08:40 2015 +0800
Committer: hubertzhang <hzhang@pivotal.io>
Committed: Thu Dec 31 16:08:40 2015 +0800

----------------------------------------------------------------------
 src/backend/cdb/cdbdatalocality.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/d8c1a691/src/backend/cdb/cdbdatalocality.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbdatalocality.c b/src/backend/cdb/cdbdatalocality.c
index 3cc4e74..c3385b1 100644
--- a/src/backend/cdb/cdbdatalocality.c
+++ b/src/backend/cdb/cdbdatalocality.c
@@ -1057,7 +1057,7 @@ static void double_check_hdfs_metadata_logic_length(BlockLocation *
locations,in
 	for(int i=0;i<block_num;i++) {
 		hdfs_file_len += locations[i].length;
 	}
-	if(logic_len != hdfs_file_len) {
+	if(logic_len > hdfs_file_len) {
 		elog(ERROR, "hdfs file length does not equal to metadata logic length!");
 	}
 }


Mime
View raw message