hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject incubator-hawq git commit: HAWQ-1149. Only refresh Relation->rd_relationnodeinfo.isPresent when relation is valid.
Date Tue, 22 Nov 2016 02:17:22 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 475dbb5cb -> 93f2983dc


HAWQ-1149. Only refresh Relation->rd_relationnodeinfo.isPresent when relation is valid.


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

Branch: refs/heads/master
Commit: 93f2983dcf12e32724e692b21895bd321153a892
Parents: 475dbb5
Author: Ming LI <mli@apache.org>
Authored: Tue Nov 22 10:16:28 2016 +0800
Committer: Ming LI <mli@apache.org>
Committed: Tue Nov 22 10:16:57 2016 +0800

----------------------------------------------------------------------
 src/backend/cdb/cdbpersistentbuild.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/93f2983d/src/backend/cdb/cdbpersistentbuild.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbpersistentbuild.c b/src/backend/cdb/cdbpersistentbuild.c
index a12bc3b..3fea2bb 100644
--- a/src/backend/cdb/cdbpersistentbuild.c
+++ b/src/backend/cdb/cdbpersistentbuild.c
@@ -420,8 +420,10 @@ static void PersistentBuild_PopulateGpRelationNode(
 		}
 		// reset Relation->rd_relationnodeinfo.isPresent, so that next time persistentid and
serial# can be refetched
 		rd = RelationIdGetRelation(relFileNode.relNode);
-		rd->rd_relationnodeinfo.isPresent = false;
-		RelationClose(rd);
+		if(RelationIsValid(rd)){
+			rd->rd_relationnodeinfo.isPresent = false;
+			RelationClose(rd);
+		}
 
 		(*count)++;
 	}


Mime
View raw message