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-448. hawq_global_rm_type is case sensitive
Date Thu, 25 Feb 2016 02:02:24 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 82922984e -> e9b00d793


HAWQ-448. hawq_global_rm_type is case sensitive


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

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

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


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/e9b00d79/src/backend/resourcemanager/resourcemanager.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resourcemanager.c b/src/backend/resourcemanager/resourcemanager.c
index e03ce0b..1d2e68d 100644
--- a/src/backend/resourcemanager/resourcemanager.c
+++ b/src/backend/resourcemanager/resourcemanager.c
@@ -1018,11 +1018,11 @@ int  loadDynamicResourceManagerConfigure(void)
 				 rm_segment_port);
 
 	/* Decide global resource manager mode. */
-	if ( strcmp(rm_global_rm_type, HAWQDRM_CONFFILE_SVRTYPE_VAL_YARN) == 0 )
+	if ( strcasecmp(rm_global_rm_type, HAWQDRM_CONFFILE_SVRTYPE_VAL_YARN) == 0 )
 	{
 		DRMGlobalInstance->ImpType = YARN_LIBYARN;
 	}
-	else if ( strcmp(rm_global_rm_type, HAWQDRM_CONFFILE_SVRTYPE_VAL_NONE) == 0 )
+	else if ( strcasecmp(rm_global_rm_type, HAWQDRM_CONFFILE_SVRTYPE_VAL_NONE) == 0 )
 	{
 		DRMGlobalInstance->ImpType = NONE_HAWQ2;
 	}


Mime
View raw message