mariadb/storage
Marko Mäkelä 549e84b4d5 MDEV-30047 innodb.insert_into_empty fails to delete bulk_store
InnoDB fails to remove bulk store when InnoDB bulk insert
does partial rollback on multiple tables. This memory leak
was revealed by a test case that was added in
commit 505da21e33 (MDEV-27214).

trx_t::bulk_rollback(): Delete the bulk_store. After this function
finishes execution, trx_t::is_bulk_insert() will not hold and therefore
trx_t::commit_cleanup() will not free the memory.

Alternatively, we could define

trx_mod_table_time_t::~trx_mod_table_time_t()
{
  delete bulk_store;
}

but that would likely introduce a performance regression for the common
transaction commit. Bulk insert is rarely used.

This fix was developed by Thirunarayanan Balathandayuthapani.
2022-11-21 09:05:09 +02:00
..
archive Cleanup: Remove IF_VALGRIND 2022-04-25 09:40:40 +03:00
blackhole
columnstore Merge branch '10.6' into 10.7 2022-11-03 11:28:41 +01:00
connect Merge 10.6 into 10.7 2022-11-09 12:27:54 +02:00
csv MDEV-26635 ROW_NUMBER is not 0 for errors not caused because of rows 2021-10-26 17:29:40 +02:00
example Merge 10.6 into 10.7 2022-02-22 12:47:48 +02:00
federated Merge branch '10.5' into 10.6 2022-02-03 17:01:31 +01:00
federatedx Merge branch '10.6' into 10.7 2022-11-02 21:06:47 +01:00
heap Merge 10.5 into 10.6 2022-07-27 17:52:37 +03:00
innobase MDEV-30047 innodb.insert_into_empty fails to delete bulk_store 2022-11-21 09:05:09 +02:00
maria Merge branch '10.6' into 10.7 2022-10-29 19:22:04 +02:00
mroonga Merge branch '10.6' into 10.7 2022-10-16 21:40:33 +02:00
myisam Merge branch '10.6' into 10.7 2022-10-16 21:40:33 +02:00
myisammrg
oqgraph Merge 10.6 into 10.7 2022-01-18 13:01:19 +02:00
perfschema Merge branch '10.5' into bb-10.6-release 2022-08-03 12:19:59 +02:00
rocksdb Merge branch '10.6' into 10.7 2022-11-02 21:06:47 +01:00
sequence Merge remote-tracking branch 'origin/10.4' into 10.5 2022-09-14 16:24:51 +04:00
sphinx Merge branch '10.5' into 10.6 2022-11-02 14:33:20 +01:00
spider Merge branch '10.6' into 10.7 2022-11-02 21:06:47 +01:00
test_sql_discovery Merge 10.5 into 10.6 2022-09-20 16:53:20 +03:00