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-209. Hide detailed log of metadata cache by default.
Date Thu, 03 Dec 2015 02:50:17 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 13e713c18 -> a3988a1c4


HAWQ-209. Hide detailed log of metadata cache by default.


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

Branch: refs/heads/master
Commit: a3988a1c4a335d48d1168c1066b12f06255b37d1
Parents: 13e713c
Author: hubertzhang <hzhang@pivotal.io>
Authored: Thu Dec 3 10:49:07 2015 +0800
Committer: hubertzhang <hzhang@pivotal.io>
Committed: Thu Dec 3 10:49:07 2015 +0800

----------------------------------------------------------------------
 src/backend/cdb/cdbdatalocality.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a3988a1c/src/backend/cdb/cdbdatalocality.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbdatalocality.c b/src/backend/cdb/cdbdatalocality.c
index d74896d..eaf704d 100644
--- a/src/backend/cdb/cdbdatalocality.c
+++ b/src/backend/cdb/cdbdatalocality.c
@@ -889,8 +889,10 @@ int64 get_block_locations_and_claculte_table_size(split_to_segment_mapping_conte
 	allRelationFetchLeavetime = gettime_microsec();
 	int eclaspeTime = allRelationFetchLeavetime - allRelationFetchBegintime;
 	double hitrate = (allblocks == 0) ? 0 : (double) hitblocks / allblocks;
-	elog(LOG, "fetch blocks of %d files overall execution time:"
-	" %d us with hit rate %f \n", totalFileCount,eclaspeTime,hitrate);
+	if (debug_print_split_alloc_result) {
+		elog(LOG, "fetch blocks of %d files overall execution time: %d us with hit rate %f",
+				totalFileCount, eclaspeTime, hitrate);
+	}
 	context->total_file_count = totalFileCount;
 	context->total_size = total_size;
 


Mime
View raw message