Cherry-picked from #44145 Co-authored-by: shee <13843187+qzsee@users.noreply.github.com> Co-authored-by: garenshi <garenshi@tencent.com>
This commit is contained in:
committed by
GitHub
parent
b2637e4bda
commit
f3dbd4800f
@ -241,7 +241,7 @@ public class AuditLogHelper {
|
||||
auditEventBuilder.setStmt(origStmt);
|
||||
}
|
||||
if (!Env.getCurrentEnv().isMaster()) {
|
||||
if (ctx.executor.isForwardToMaster()) {
|
||||
if (ctx.executor != null && ctx.executor.isForwardToMaster()) {
|
||||
auditEventBuilder.setState(ctx.executor.getProxyStatus());
|
||||
int proxyStatusCode = ctx.executor.getProxyStatusCode();
|
||||
if (proxyStatusCode != 0) {
|
||||
|
||||
Reference in New Issue
Block a user