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-648. Remove hawqsite.c unused code
Date Sat, 09 Apr 2016 08:59:49 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 37839128b -> f6d855b52


HAWQ-648. Remove hawqsite.c unused code


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

Branch: refs/heads/master
Commit: f6d855b52da8d182afb5661be510070ba9a19f5d
Parents: 3783912
Author: YI JIN <yjin@pivotal.io>
Authored: Sat Apr 9 18:59:34 2016 +1000
Committer: YI JIN <yjin@pivotal.io>
Committed: Sat Apr 9 18:59:34 2016 +1000

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


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/f6d855b5/src/backend/resourcemanager/hawqsite.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/hawqsite.c b/src/backend/resourcemanager/hawqsite.c
index c9d79ef..e86465e 100644
--- a/src/backend/resourcemanager/hawqsite.c
+++ b/src/backend/resourcemanager/hawqsite.c
@@ -50,7 +50,6 @@ List *getHawqSiteConfigurationList(const char *hawqsitepath, MCTYPE context)
 	if ( res != FUNC_RETURN_OK )
 	{
 		elog(ERROR, "Fail to parse file %s for reading configuration.", conffile);
-		return NULL;
 	}
 
 	return result;
@@ -58,9 +57,9 @@ List *getHawqSiteConfigurationList(const char *hawqsitepath, MCTYPE context)
 
 void freeHawqSiteConfigurationList(MCTYPE context, List **conf)
 {
-	if ( *conf == NULL )
+	if ( *conf != NULL )
 	{
-		return;
+		cleanPropertyList(context, conf);
 	}
-	cleanPropertyList(context, conf);
+
 }


Mime
View raw message