You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by hu...@apache.org on 2016/08/09 01:30:38 UTC
incubator-hawq git commit: HAWQ-961. Dispatch session user info,
instead of current BOOTSTRAP_SUPERUSERID, from master to segments
Repository: incubator-hawq
Updated Branches:
refs/heads/master ce75f5bf7 -> 17744320e
HAWQ-961. Dispatch session user info, instead of current BOOTSTRAP_SUPERUSERID, from master 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/17744320
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/17744320
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/17744320
Branch: refs/heads/master
Commit: 17744320ebfeef106a2ba5c428d07e412cd746cf
Parents: ce75f5b
Author: Paul Guo <pa...@gmail.com>
Authored: Thu Jul 28 11:38:16 2016 +0800
Committer: hzhang2 <zh...@163.com>
Committed: Tue Aug 9 09:29:22 2016 +0800
----------------------------------------------------------------------
src/backend/cdb/executormgr.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/17744320/src/backend/cdb/executormgr.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/executormgr.c b/src/backend/cdb/executormgr.c
index 7150346..4fecdea 100644
--- a/src/backend/cdb/executormgr.c
+++ b/src/backend/cdb/executormgr.c
@@ -438,8 +438,8 @@ executormgr_dispatch_and_run(struct DispatchData *data, QueryExecutor *executor)
parms->seqServerHost, parms->seqServerHostlen, parms->seqServerPort,
parms->primary_gang_id,
GetCurrentStatementStartTimestamp(),
- BOOTSTRAP_SUPERUSERID,
- true,
+ GetSessionUserId(), /* For external tools who want this info on segments. */
+ IsAuthenticatedUserSuperUser(),
BOOTSTRAP_SUPERUSERID,
true,
BOOTSTRAP_SUPERUSERID,