Cai-Yao commented on code in PR #18609:
URL: https://github.com/apache/doris/pull/18609#discussion_r1164984800
##########
fe/fe-core/src/main/java/org/apache/doris/qe/MasterOpExecutor.java:
##########
@@ -163,6 +179,24 @@ private void forward() throws Exception {
}
}
+ // The SetStmt needs to be executed in follower again
+ // for the current session after master success
+ private void afterForwardExecute() throws DdlException {
+ if (parsedStmt != null) {
+ if (parsedStmt instanceof SetStmt) {
+ SetExecutor executor = new SetExecutor(ctx, (SetStmt)
parsedStmt);
+ try {
+ executor.setSessionVars();
Review Comment:
> I think we can set remove the `global` property in `SetStmt` and than call
`executor.execute()` method. No need to create a new method `setSessionVars()`.
Ok, I see what you mean.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]