You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by yj...@apache.org on 2015/11/09 07:50:17 UTC
incubator-hawq git commit: HAWQ-138. Alter resource quene error when
memory set 64mb
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 <yj...@pivotal.io>
Authored: Mon Nov 9 14:50:03 2015 +0800
Committer: Yi Jin <yj...@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,