hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From y...@apache.org
Subject incubator-hawq git commit: HAWQ-449. Should not adjust FTS resource capacity in YARN mode
Date Thu, 25 Feb 2016 02:05:10 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master e9b00d793 -> 51073e4d3


HAWQ-449. Should not adjust FTS resource capacity in YARN mode


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

Branch: refs/heads/master
Commit: 51073e4d3339cd9a82e7d0b48f8deb78bf78ddc4
Parents: e9b00d7
Author: YI JIN <yjin@pivotal.io>
Authored: Thu Feb 25 13:03:02 2016 +1100
Committer: YI JIN <yjin@pivotal.io>
Committed: Thu Feb 25 13:03:02 2016 +1100

----------------------------------------------------------------------
 src/backend/resourcemanager/resourcepool.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/51073e4d/src/backend/resourcemanager/resourcepool.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resourcepool.c b/src/backend/resourcemanager/resourcepool.c
index 321ca74..6cc53eb 100644
--- a/src/backend/resourcemanager/resourcepool.c
+++ b/src/backend/resourcemanager/resourcepool.c
@@ -746,7 +746,8 @@ int addHAWQSegWithSegStat(SegStat segstat, bool *capstatchanged)
 	 * Anyway, the host capacity is updated here if the cluster level capacity
 	 * is fixed.
 	 */
-	if ( PRESPOOL->ClusterMemoryCoreRatio > 0 )
+	if ( DRMGlobalInstance->ImpType == NONE_HAWQ2 &&
+		 PRESPOOL->ClusterMemoryCoreRatio > 0 )
 	{
 		adjustSegmentStatFTSCapacity(segstat);
 	}


Mime
View raw message