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-649. Fix bug of adjusting segment capacity
Date Sun, 10 Apr 2016 10:11:34 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 96d926186 -> 0d6db98fa


HAWQ-649. Fix bug of adjusting segment capacity


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

Branch: refs/heads/master
Commit: 0d6db98fa9237a8681bebb2f210c9a68fa0df44f
Parents: 96d9261
Author: YI JIN <yjin@pivotal.io>
Authored: Sun Apr 10 20:10:57 2016 +1000
Committer: YI JIN <yjin@pivotal.io>
Committed: Sun Apr 10 20:10:57 2016 +1000

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


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/0d6db98f/src/backend/resourcemanager/resourcepool.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resourcepool.c b/src/backend/resourcemanager/resourcepool.c
index 3ff1871..9ed243e 100644
--- a/src/backend/resourcemanager/resourcepool.c
+++ b/src/backend/resourcemanager/resourcepool.c
@@ -4714,7 +4714,7 @@ void adjustSegmentStatGRMCapacity(SegStat segstat)
 
 void adjustSegmentCapacityForNone(SegResource segres)
 {
-	if ( PRESPOOL->ClusterMemoryCoreRatio == 0 )
+	if ( PRESPOOL->ClusterMemoryCoreRatio != 0 )
 	{
 		uint32_t oldmemorymb = 0;
 		uint32_t oldcore	 = 0;
@@ -4754,7 +4754,7 @@ void adjustSegmentCapacityForNone(SegResource segres)
 
 void adjustSegmentCapacityForGRM(SegResource segres)
 {
-	if ( PRESPOOL->ClusterMemoryCoreRatio == 0 )
+	if ( PRESPOOL->ClusterMemoryCoreRatio != 0 )
 	{
 		uint32_t oldmemorymb = 0;
 		uint32_t oldcore	 = 0;


Mime
View raw message