Repository: incubator-hawq
Updated Branches:
  refs/heads/master 2a0dd7dd3 -> e93e705a8


HAWQ-1149. Fixed relcache reference leak in some cases


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

Branch: refs/heads/master
Commit: e93e705a82f86b1b0b3e704f43bfe04e9fd59ef7
Parents: 2a0dd7d
Author: Ming LI <[email protected]>
Authored: Wed Nov 23 10:19:21 2016 +0800
Committer: Ming LI <[email protected]>
Committed: Wed Nov 23 10:19:47 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/e93e705a/src/backend/cdb/cdbpersistentbuild.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbpersistentbuild.c 
b/src/backend/cdb/cdbpersistentbuild.c
index 17dba4b..72276a0 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)++;
        }

Reply via email to