1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

MDEV-22722 Assertion "inited==NONE" failed in handler::ha_index_init on the slave during UPDATE

Add missing call for handler->prepare_for_insert() in Rows_log_event::do_apply_event
This commit is contained in:
Sachin
2020-05-29 22:12:44 +05:30
parent 7e798534f0
commit 72776d4c49
3 changed files with 38 additions and 0 deletions

View File

@@ -5570,6 +5570,8 @@ int Rows_log_event::do_apply_event(rpl_group_info *rgi)
{
master_had_triggers= table->master_had_triggers;
bool transactional_table= table->file->has_transactions_and_rollback();
table->file->prepare_for_insert(get_genral_type_code() != WRITE_ROWS_EVENT);
/*
table == NULL means that this table should not be replicated
(this was set up by Table_map_log_event::do_apply_event()