Skip to content

Commit

Permalink
[fix](resource-tag) missing resource tag after forwarding to master (a…
Browse files Browse the repository at this point in the history
…pache#35618)

## Proposed changes

All DDL and DML will be forwarded to Master FE.
And we forgot to set resource tag in ConnectionContext
after forwarding
  • Loading branch information
morningman committed May 30, 2024
1 parent ec6abb6 commit 3c11f09
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,9 @@ public TMasterOpResult proxyExecute(TMasterOpRequest request) throws TException
ctx.setUserVars(userVariableFromThrift(request.getUserVariables()));
}

// set resource tag
ctx.setResourceTags(Env.getCurrentEnv().getAuth().getResourceTags(ctx.qualifiedUser));

ctx.setThreadLocalInfo();
StmtExecutor executor = null;
try {
Expand Down

0 comments on commit 3c11f09

Please sign in to comment.