You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by sh...@apache.org on 2015/09/30 23:37:23 UTC

[2/2] incubator-hawq git commit: HAWQ-6. Skip hcatalog in PersistentBuild_TruncateAllGpRelationNode

HAWQ-6. Skip hcatalog in PersistentBuild_TruncateAllGpRelationNode


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

Branch: refs/heads/master
Commit: 3581ed37af6d7af93227b9bf708cc58631a76d8e
Parents: 621bc97
Author: Jimmy Da <jd...@pivotal.io>
Authored: Tue Sep 22 16:06:35 2015 -0700
Committer: Jimmy Da <jd...@pivotal.io>
Committed: Wed Sep 30 14:33:05 2015 -0700

----------------------------------------------------------------------
 src/backend/cdb/cdbpersistentbuild.c | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/3581ed37/src/backend/cdb/cdbpersistentbuild.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbpersistentbuild.c b/src/backend/cdb/cdbpersistentbuild.c
index 416718e..e161060 100755
--- a/src/backend/cdb/cdbpersistentbuild.c
+++ b/src/backend/cdb/cdbpersistentbuild.c
@@ -892,6 +892,9 @@ PersistentBuild_TruncateAllGpRelationNode(void)
 		dbOid = HeapTupleGetOid(tuple);
 		dattablespace = form_pg_database->dattablespace;
 
+		if (dbOid == HcatalogDbOid)
+			continue;
+
 		if (Debug_persistent_print)
 			elog(Persistent_DebugPrintLevel(), 
 				 "PersistentBuild_TruncateAllGpRelationNode: dbOid %u, '%s'",