mirror of
https://github.com/MariaDB/server.git
synced 2025-08-31 22:22:30 +03:00
this has nothing to do with the bug#13012.
it's about mysql_admin_commands not being reexecution-safe (and CHECK still isn't)
This commit is contained in:
@@ -2614,7 +2614,8 @@ mysql_execute_command(THD *thd)
|
||||
goto error; /* purecov: inspected */
|
||||
thd->enable_slow_log= opt_log_slow_admin_statements;
|
||||
res = mysql_backup_table(thd, first_table);
|
||||
|
||||
(TABLE_LIST*) select_lex->table_list.first=first_table;
|
||||
lex->query_tables=all_tables;
|
||||
break;
|
||||
}
|
||||
case SQLCOM_RESTORE_TABLE:
|
||||
@@ -2626,6 +2627,8 @@ mysql_execute_command(THD *thd)
|
||||
goto error; /* purecov: inspected */
|
||||
thd->enable_slow_log= opt_log_slow_admin_statements;
|
||||
res = mysql_restore_table(thd, first_table);
|
||||
(TABLE_LIST*) select_lex->table_list.first=first_table;
|
||||
lex->query_tables=all_tables;
|
||||
break;
|
||||
}
|
||||
case SQLCOM_ASSIGN_TO_KEYCACHE:
|
||||
@@ -3128,6 +3131,8 @@ end_with_restore_list:
|
||||
mysql_bin_log.write(&qinfo);
|
||||
}
|
||||
}
|
||||
(TABLE_LIST*) select_lex->table_list.first=first_table;
|
||||
lex->query_tables=all_tables;
|
||||
break;
|
||||
}
|
||||
case SQLCOM_CHECK:
|
||||
@@ -3138,6 +3143,8 @@ end_with_restore_list:
|
||||
goto error; /* purecov: inspected */
|
||||
thd->enable_slow_log= opt_log_slow_admin_statements;
|
||||
res = mysql_check_table(thd, first_table, &lex->check_opt);
|
||||
(TABLE_LIST*) select_lex->table_list.first=first_table;
|
||||
lex->query_tables=all_tables;
|
||||
break;
|
||||
}
|
||||
case SQLCOM_ANALYZE:
|
||||
@@ -3158,6 +3165,8 @@ end_with_restore_list:
|
||||
mysql_bin_log.write(&qinfo);
|
||||
}
|
||||
}
|
||||
(TABLE_LIST*) select_lex->table_list.first=first_table;
|
||||
lex->query_tables=all_tables;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -3181,6 +3190,8 @@ end_with_restore_list:
|
||||
mysql_bin_log.write(&qinfo);
|
||||
}
|
||||
}
|
||||
(TABLE_LIST*) select_lex->table_list.first=first_table;
|
||||
lex->query_tables=all_tables;
|
||||
break;
|
||||
}
|
||||
case SQLCOM_UPDATE:
|
||||
|
Reference in New Issue
Block a user