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 <[email protected]>
Authored: Wed Nov 23 19:27:03 2016 +0800
Committer: Ming LI <[email protected]>
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)++;
        }

Reply via email to