1756
1747
thd->enable_slow_log= opt_log_slow_admin_statements;
1757
1748
res= mysql_optimize_table(thd, first_table, &lex->check_opt);
1758
1749
/* ! we write after unlocking the table */
1764
write_bin_log(thd, true, thd->query, thd->query_length);
1750
write_bin_log(thd, true, thd->query, thd->query_length);
1766
1751
select_lex->table_list.first= (uchar*) first_table;
1767
1752
lex->query_tables=all_tables;