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-138. Alter resource quene error when memory set 64mb
Date Mon, 09 Nov 2015 06:50:17 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 9a10f91d6 -> 322fbf444


HAWQ-138. Alter resource quene error when memory set 64mb


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

Branch: refs/heads/master
Commit: 322fbf444be15830199f95a14f4be6ea29b988d7
Parents: 9a10f91
Author: Yi Jin <yjin@pivotal.io>
Authored: Mon Nov 9 14:50:03 2015 +0800
Committer: Yi Jin <yjin@pivotal.io>
Committed: Mon Nov 9 14:50:03 2015 +0800

----------------------------------------------------------------------
 src/backend/resourcemanager/resqueuemanager.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/322fbf44/src/backend/resourcemanager/resqueuemanager.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resqueuemanager.c b/src/backend/resourcemanager/resqueuemanager.c
index 2a26c54..7758234 100644
--- a/src/backend/resourcemanager/resqueuemanager.c
+++ b/src/backend/resourcemanager/resqueuemanager.c
@@ -504,15 +504,15 @@ int parseResourceQueueAttributes( List 			 	*attributes,
 								 "parsed segment resource quota %d MB",
 								 queue->SegResourceQuotaMemoryMB);
 
-					if ( !(queue->SegResourceQuotaMemoryMB == (2<<6))   &&
-						 !(queue->SegResourceQuotaMemoryMB == (2<<7))  &&
-						 !(queue->SegResourceQuotaMemoryMB == (2<<8))  &&
-						 !(queue->SegResourceQuotaMemoryMB == (2<<9))  &&
-						 !(queue->SegResourceQuotaMemoryMB == (2<<10)) &&
-						 !(queue->SegResourceQuotaMemoryMB == (2<<11)) &&
-						 !(queue->SegResourceQuotaMemoryMB == (2<<12)) &&
-						 !(queue->SegResourceQuotaMemoryMB == (2<<13)) &&
-						 !(queue->SegResourceQuotaMemoryMB == (2<<14)) )
+					if ( !(queue->SegResourceQuotaMemoryMB == (1<<6))  &&
+						 !(queue->SegResourceQuotaMemoryMB == (1<<7))  &&
+						 !(queue->SegResourceQuotaMemoryMB == (1<<8))  &&
+						 !(queue->SegResourceQuotaMemoryMB == (1<<9))  &&
+						 !(queue->SegResourceQuotaMemoryMB == (1<<10)) &&
+						 !(queue->SegResourceQuotaMemoryMB == (1<<11)) &&
+						 !(queue->SegResourceQuotaMemoryMB == (1<<12)) &&
+						 !(queue->SegResourceQuotaMemoryMB == (1<<13)) &&
+						 !(queue->SegResourceQuotaMemoryMB == (1<<14)) )
 					{
 						res = RESQUEMGR_WRONG_RES_QUOTA_EXP;
 						snprintf(errorbuf, errorbufsize,


Mime
View raw message