diff options
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r-- | sql/sql_table.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc index bfde3375d1e..5af136dd72d 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -11852,6 +11852,11 @@ copy_data_between_tables(THD *thd, TABLE *from, TABLE *to, // We restore bitmaps, because update event is going to mess up with them. to->default_column_bitmaps(); + end_read_record(&info); + init_read_record_done= false; + mysql_unlock_tables(thd, thd->lock); + thd->lock= NULL; + error= online_alter_read_from_binlog(thd, &rgi, binlog); DEBUG_SYNC(thd, "alter_table_online_before_lock"); |