You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by ml...@apache.org on 2016/11/23 11:28:16 UTC

incubator-hawq git commit: Revert "HAWQ-1149. Fixed relcache reference leak in some cases"

Repository: incubator-hawq
Updated Branches:
  refs/heads/master e93e705a8 -> 3354de0b1


Revert "HAWQ-1149. Fixed relcache reference leak in some cases"

This reverts commit e93e705a82f86b1b0b3e704f43bfe04e9fd59ef7.


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

Branch: refs/heads/master
Commit: 3354de0b19a713a73d9f50b2b2c6916479532cc1
Parents: e93e705
Author: Ming LI <ml...@apache.org>
Authored: Wed Nov 23 19:27:03 2016 +0800
Committer: Ming LI <ml...@apache.org>
Committed: Wed Nov 23 19:27:03 2016 +0800

----------------------------------------------------------------------
 src/backend/cdb/cdbpersistentbuild.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/3354de0b/src/backend/cdb/cdbpersistentbuild.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbpersistentbuild.c b/src/backend/cdb/cdbpersistentbuild.c
index 72276a0..17dba4b 100644
--- a/src/backend/cdb/cdbpersistentbuild.c
+++ b/src/backend/cdb/cdbpersistentbuild.c
@@ -422,8 +422,8 @@ static void PersistentBuild_PopulateGpRelationNode(
 		rd = RelationIdGetRelation(relFileNode.relNode);
 		if(RelationIsValid(rd)){
 			rd->rd_relationnodeinfo.isPresent = false;
+			RelationClose(rd);
 		}
-		RelationClose(rd);
 
 		(*count)++;
 	}