You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by zt...@apache.org on 2016/02/01 07:21:35 UTC

incubator-hawq git commit: HAWQ-377. Reindex should not be dispatched to segments.

Repository: incubator-hawq
Updated Branches:
  refs/heads/master a98b493d9 -> ee7d00482


HAWQ-377. Reindex should not be dispatched to segments.


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

Branch: refs/heads/master
Commit: ee7d00482f357ee9a07f68bd4aaca9e2a2052b9a
Parents: a98b493
Author: zhenglin tao <zh...@gmail.com>
Authored: Mon Feb 1 14:03:22 2016 +0800
Committer: zhenglin tao <zh...@gmail.com>
Committed: Mon Feb 1 14:08:33 2016 +0800

----------------------------------------------------------------------
 src/backend/tcop/utility.c | 26 --------------------------
 1 file changed, 26 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/ee7d0048/src/backend/tcop/utility.c
----------------------------------------------------------------------
diff --git a/src/backend/tcop/utility.c b/src/backend/tcop/utility.c
index 372d664..4db5bab 100644
--- a/src/backend/tcop/utility.c
+++ b/src/backend/tcop/utility.c
@@ -1714,32 +1714,6 @@ ProcessUtility(Node *parsetree,
 							 (int) stmt->kind);
 						break;
 				}
-
-				if (Gp_role == GP_ROLE_DISPATCH)
-				{
-					if (stmt->kind != OBJECT_DATABASE)
-						dispatch_statement_node((Node *) stmt, NULL, NULL, NULL);
-					else
-					{
-						/*
-						 * REINDEX DATABASE must be dispatched different, because it can't
-						 * be in a user transaction
-						 */
-						StringInfoData buffer;
-
-						initStringInfo(&buffer);
-
-						/* MPP-1832: REINDEX SYSTEM generates sets
-						 * kind to OBJECT_DATABASE, but sets do_user
-						 * to false */
-						if (!stmt->do_user)
-							appendStringInfo(&buffer, "REINDEX SYSTEM \"%s\"", stmt->name);
-						else
-							appendStringInfo(&buffer, "REINDEX DATABASE \"%s\"", stmt->name);
-
-						dispatch_statement_string(buffer.data, NULL, 0, NULL, NULL, false);
-					}
-				}
 			}
 			break;