mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-28959 Online alter ignores strict table mode
* don't disable warnings when catching up * do propagate warnings up like copy_data_between_tables() does
This commit is contained in:
@ -11566,7 +11566,6 @@ static int online_alter_read_from_binlog(THD *thd, rpl_group_info *rgi,
|
||||
|
||||
thd_progress_report(thd, 0, my_b_write_tell(log_file));
|
||||
|
||||
Abort_on_warning_instant_set old_abort_on_warning(thd, 0);
|
||||
Has_default_error_handler hdeh;
|
||||
thd->push_internal_handler(&hdeh);
|
||||
do
|
||||
@ -11580,7 +11579,8 @@ static int online_alter_read_from_binlog(THD *thd, rpl_group_info *rgi,
|
||||
thd->set_n_backup_active_arena(&event_arena, &backup_arena);
|
||||
error= ev->apply_event(rgi);
|
||||
thd->restore_active_arena(&event_arena, &backup_arena);
|
||||
|
||||
if (thd->is_error())
|
||||
error= 1;
|
||||
event_arena.free_items();
|
||||
free_root(&event_mem_root, MYF(MY_KEEP_PREALLOC));
|
||||
if (ev != rgi->rli->relay_log.description_event_for_exec)
|
||||
|
Reference in New Issue
Block a user