mirror of
https://github.com/MariaDB/server.git
synced 2025-04-02 05:15:33 +02:00
MDEV-33972: Memory corruption in innodb.insert_into_empty
trx_t::bulk_insert_apply_for_table(dict_table_t *table):
Do not write through an invalid iterator.
This fixes up commit 863f5996f2
(MDEV-33868).
This commit is contained in:
parent
f0d0ddc992
commit
455a15fd06
1 changed files with 4 additions and 2 deletions
|
@ -5374,13 +5374,15 @@ dberr_t trx_t::bulk_insert_apply_for_table(dict_table_t *table)
|
|||
if (UNIV_UNLIKELY(!bulk_insert))
|
||||
return DB_SUCCESS;
|
||||
auto it= mod_tables.find(table);
|
||||
if (it != mod_tables.end() && it->second.bulk_store)
|
||||
if (it != mod_tables.end())
|
||||
{
|
||||
if (dberr_t err= it->second.write_bulk(table, this))
|
||||
{
|
||||
bulk_rollback_low();
|
||||
return err;
|
||||
}
|
||||
it->second.end_bulk_insert();
|
||||
it->second.end_bulk_insert();
|
||||
}
|
||||
return DB_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue