pkg/session: add binding operations to CRUCIAL OPERATION log (#57483)

close pingcap/tidb#57482
This commit is contained in:
Jack Yu
2024-11-19 14:04:53 +08:00
committed by GitHub
parent 153d5aaa38
commit 8382fdbeae

View File

@ -4092,7 +4092,7 @@ func logStmt(execStmt *executor.ExecStmt, s *session) {
case *ast.CreateUserStmt, *ast.DropUserStmt, *ast.AlterUserStmt, *ast.SetPwdStmt, *ast.GrantStmt,
*ast.RevokeStmt, *ast.AlterTableStmt, *ast.CreateDatabaseStmt, *ast.CreateTableStmt,
*ast.DropDatabaseStmt, *ast.DropTableStmt, *ast.RenameTableStmt, *ast.TruncateTableStmt,
*ast.RenameUserStmt:
*ast.RenameUserStmt, *ast.CreateBindingStmt, *ast.DropBindingStmt, *ast.SetBindingStmt:
isCrucial = true
}