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 2016/01/13 03:18:54 UTC

incubator-hawq git commit: HAWQ-330. Fail to recognize value of activestats in catalog table pg_resqueue when the value is large

Repository: incubator-hawq
Updated Branches:
  refs/heads/master 7a4c1c867 -> 381b7f45f


HAWQ-330. Fail to recognize value of activestats in catalog table pg_resqueue when the value is large


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

Branch: refs/heads/master
Commit: 381b7f45f1d39ae659f3fb984658be817973bcf8
Parents: 7a4c1c8
Author: YI JIN <yj...@pivotal.io>
Authored: Wed Jan 13 13:18:42 2016 +1100
Committer: YI JIN <yj...@pivotal.io>
Committed: Wed Jan 13 13:18:42 2016 +1100

----------------------------------------------------------------------
 src/backend/resourcemanager/resourcemanager.c    | 2 +-
 src/backend/resourcemanager/utils/kvproperties.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/381b7f45/src/backend/resourcemanager/resourcemanager.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resourcemanager.c b/src/backend/resourcemanager/resourcemanager.c
index 8a5b273..de6327d 100644
--- a/src/backend/resourcemanager/resourcemanager.c
+++ b/src/backend/resourcemanager/resourcemanager.c
@@ -1509,7 +1509,7 @@ int	 loadQueuePropertiesFromCatalog(List **queues)
 	    				  createPropertyFloat(
 	    					  PCONTEXT,
 							  "queue",
-	 						  getRSQTBLAttributeName(RSQ_DDL_ATTR_RESOURCE_OVERCOMMIT_FACTOR),
+	 						  getRSQTBLAttributeName(RSQ_TBL_ATTR_RESOURCE_OVERCOMMIT_FACTOR),
 							  &i,
 							  resource_overcommit));
 

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/381b7f45/src/backend/resourcemanager/utils/kvproperties.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/utils/kvproperties.c b/src/backend/resourcemanager/utils/kvproperties.c
index 80b5284..0d370da 100644
--- a/src/backend/resourcemanager/utils/kvproperties.c
+++ b/src/backend/resourcemanager/utils/kvproperties.c
@@ -487,7 +487,7 @@ KVProperty createPropertyInt32(MCTYPE  		  context,
 {
 	KVProperty result = createPropertyEmpty(context);
 	buildDottedPropertyNameString(&(result->Key), tag1, tag2, index);
-	SimpleStringSetInt8(&(result->Val), value);
+	SimpleStringSetInt32(&(result->Val), value);
 	return result;
 }