Commit d7a38eaf authored by Alexander Barkov's avatar Alexander Barkov

MDEV-18907 Slow log: RENAME TABLE is not "admin", while ALTER TABLE..RENAME is

parent 691c3069
...@@ -73,6 +73,7 @@ sql_text ...@@ -73,6 +73,7 @@ sql_text
[slow] CREATE INDEX t1a ON t1 (a) [slow] CREATE INDEX t1a ON t1 (a)
[slow] DROP INDEX t1a ON t1 [slow] DROP INDEX t1a ON t1
[slow] ALTER TABLE t2 RENAME t2 [slow] ALTER TABLE t2 RENAME t2
[slow] RENAME TABLE t2 TO t3
[slow] ALTER TABLE t4 MODIFY a INT DEFAULT 1 [slow] ALTER TABLE t4 MODIFY a INT DEFAULT 1
# #
# Expect none of admin DDL statements in the slow log (ON,filesort) # Expect none of admin DDL statements in the slow log (ON,filesort)
...@@ -120,7 +121,6 @@ sql_text ...@@ -120,7 +121,6 @@ sql_text
[slow] CREATE TABLE t1 (a INT) [slow] CREATE TABLE t1 (a INT)
[slow] DROP TABLE t1 [slow] DROP TABLE t1
[slow] CREATE TABLE t2 (a INT) [slow] CREATE TABLE t2 (a INT)
[slow] RENAME TABLE t2 TO t3
[slow] DROP TABLE t3 [slow] DROP TABLE t3
[slow] CREATE TABLE t4 (a INT) [slow] CREATE TABLE t4 (a INT)
[slow] PREPARE stmt FROM 'ALTER TABLE t4 MODIFY a INT DEFAULT 1' [slow] PREPARE stmt FROM 'ALTER TABLE t4 MODIFY a INT DEFAULT 1'
......
...@@ -324,7 +324,8 @@ void init_update_queries(void) ...@@ -324,7 +324,8 @@ void init_update_queries(void)
sql_command_flags[SQLCOM_DROP_DB]= CF_CHANGES_DATA | CF_AUTO_COMMIT_TRANS; sql_command_flags[SQLCOM_DROP_DB]= CF_CHANGES_DATA | CF_AUTO_COMMIT_TRANS;
sql_command_flags[SQLCOM_ALTER_DB_UPGRADE]= CF_AUTO_COMMIT_TRANS; sql_command_flags[SQLCOM_ALTER_DB_UPGRADE]= CF_AUTO_COMMIT_TRANS;
sql_command_flags[SQLCOM_ALTER_DB]= CF_CHANGES_DATA | CF_AUTO_COMMIT_TRANS; sql_command_flags[SQLCOM_ALTER_DB]= CF_CHANGES_DATA | CF_AUTO_COMMIT_TRANS;
sql_command_flags[SQLCOM_RENAME_TABLE]= CF_CHANGES_DATA | CF_AUTO_COMMIT_TRANS; sql_command_flags[SQLCOM_RENAME_TABLE]= CF_CHANGES_DATA | CF_AUTO_COMMIT_TRANS |
CF_ADMIN_COMMAND;
sql_command_flags[SQLCOM_DROP_INDEX]= CF_CHANGES_DATA | CF_AUTO_COMMIT_TRANS | sql_command_flags[SQLCOM_DROP_INDEX]= CF_CHANGES_DATA | CF_AUTO_COMMIT_TRANS |
CF_REPORT_PROGRESS | CF_ADMIN_COMMAND; CF_REPORT_PROGRESS | CF_ADMIN_COMMAND;
sql_command_flags[SQLCOM_CREATE_VIEW]= CF_CHANGES_DATA | CF_REEXECUTION_FRAGILE | sql_command_flags[SQLCOM_CREATE_VIEW]= CF_CHANGES_DATA | CF_REEXECUTION_FRAGILE |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment