pkg/session: add binding operations to CRUCIAL OPERATION log (#57483)
close pingcap/tidb#57482
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user