You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by wl...@apache.org on 2016/03/30 08:57:27 UTC
incubator-hawq git commit: HAWQ-604. Remove Dead Codes in
resourcebroker_API.c
Repository: incubator-hawq
Updated Branches:
refs/heads/master aca207cc0 -> 7d155bee0
HAWQ-604. Remove Dead Codes in resourcebroker_API.c
Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/7d155bee
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/7d155bee
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/7d155bee
Branch: refs/heads/master
Commit: 7d155bee0cf715bc296e1d2facf1de001c9b106c
Parents: aca207c
Author: Wen Lin <wl...@pivotal.io>
Authored: Wed Mar 30 14:56:33 2016 +0800
Committer: Wen Lin <wl...@pivotal.io>
Committed: Wed Mar 30 14:56:33 2016 +0800
----------------------------------------------------------------------
.../include/resourcebroker/resourcebroker_API.h | 1 -
.../resourcebroker/resourcebroker_API.c | 19 -------------------
2 files changed, 20 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/7d155bee/src/backend/resourcemanager/include/resourcebroker/resourcebroker_API.h
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/include/resourcebroker/resourcebroker_API.h b/src/backend/resourcemanager/include/resourcebroker/resourcebroker_API.h
index f499490..8b7fa83 100644
--- a/src/backend/resourcemanager/include/resourcebroker/resourcebroker_API.h
+++ b/src/backend/resourcemanager/include/resourcebroker/resourcebroker_API.h
@@ -83,7 +83,6 @@ int RB_returnResource(List **containers);
int RB_getContainerReport(List **ctnstat);
int RB_handleNotifications(void);
-void RB_freeClusterReport(List **machines);
void RB_freeContainerReport(List **containers);
void RB_handleSignalSIGCHLD(void);
void RB_handleError(int errorcode);
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/7d155bee/src/backend/resourcemanager/resourcebroker/resourcebroker_API.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/resourcebroker/resourcebroker_API.c b/src/backend/resourcemanager/resourcebroker/resourcebroker_API.c
index 7a577fd..58688f7 100644
--- a/src/backend/resourcemanager/resourcebroker/resourcebroker_API.c
+++ b/src/backend/resourcemanager/resourcebroker/resourcebroker_API.c
@@ -118,25 +118,6 @@ int RB_handleNotifications(void)
FUNC_RETURN_OK;
}
-void RB_freeClusterReport(List **segments)
-{
- if (CurrentRBImp.freeClusterReport != NULL)
- {
- CurrentRBImp.freeClusterReport(segments);
- return;
- }
-
- MEMORY_CONTEXT_SWITCH_TO(PCONTEXT)
- /* default implementation for freeing the cluster report objects. */
- while( list_length(*segments) > 0 )
- {
- SegInfo seginfo = (SegInfo)lfirst(list_head(*segments));
- *segments = list_delete_first(*segments);
- rm_pfree(PCONTEXT, seginfo);
- }
- MEMORY_CONTEXT_SWITCH_BACK
-}
-
void RB_handleSignalSIGCHLD(void)
{
if (CurrentRBImp.handleSigSIGCHLD != NULL)