hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shiv...@apache.org
Subject [2/2] incubator-hawq git commit: HAWQ-6. Skip hcatalog in PersistentBuild_TruncateAllGpRelationNode
Date Wed, 30 Sep 2015 21:37:23 GMT
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 <jda@pivotal.io>
Authored: Tue Sep 22 16:06:35 2015 -0700
Committer: Jimmy Da <jda@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'",


Mime
View raw message