diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 31a544368e5..0c80137ee3d 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -2225,7 +2225,9 @@ send_result_message: TABLE_LIST *save_next_local= table->next_local, *save_next_global= table->next_global; table->next_local= table->next_global= 0; + tmp_disable_binlog(thd); // binlogging is done by caller if wanted result_code= mysql_recreate_table(thd, table, 0); + reenable_binlog(thd); close_thread_tables(thd); if (!result_code) // recreation went ok {