mariadb/storage/innobase/row
Thirunarayanan Balathandayuthapani f388222d49 MDEV-36504 Memory leak after CREATE TABLE..SELECT
Problem:
========
- After commit cc8eefb0dc (MDEV-33087),
InnoDB does use bulk insert operation for ALTER TABLE.. ALGORITHM=COPY
and CREATE TABLE..SELECT as well. InnoDB fails to clear the bulk
buffer when it encounters error during CREATE..SELECT. Problem
is that while transaction cleanup, InnoDB fails to identify
the bulk insert for DDL operation.

Fix:
====
- Represent bulk_insert in trx by 2 bits. By doing that, InnoDB
can distinguish between TRX_DML_BULK, TRX_DDL_BULK. During DDL,
set bulk insert value for transaction to TRX_DDL_BULK.

- Introduce a parameter HA_EXTRA_ABORT_ALTER_COPY which rollbacks
only TRX_DDL_BULK transaction.

- bulk_insert_apply() happens for TRX_DDL_BULK transaction happens
only during HA_EXTRA_END_ALTER_COPY extra() call.
2025-04-17 12:04:09 +05:30
..
row0ext.cc Merge 10.3 into 10.4 2020-07-02 07:39:33 +03:00
row0ftsort.cc Merge branch '10.6' into 10.11 2023-12-18 11:19:04 +01:00
row0import.cc MDEV-35169 ALTER TABLE...IMPORT TABLESPACE does not work with INDEX DESC 2025-01-28 11:56:35 +05:30
row0ins.cc MDEV-36504 Memory leak after CREATE TABLE..SELECT 2025-04-17 12:04:09 +05:30
row0log.cc Merge 10.6 into 10.11 2025-03-27 08:01:47 +02:00
row0merge.cc MDEV-34703 LOAD DATA INFILE using Innodb bulk load aborts 2025-01-15 23:49:13 +05:30
row0mysql.cc MDEV-36504 Memory leak after CREATE TABLE..SELECT 2025-04-17 12:04:09 +05:30
row0purge.cc MDEV-35000 preparation: Clean up dict_table_t::stat 2025-02-28 08:55:16 +02:00
row0quiesce.cc MDEV-35169 ALTER TABLE...IMPORT TABLESPACE does not work with INDEX DESC 2025-01-28 11:56:35 +05:30
row0row.cc Merge branch '10.5' into 10.6 2024-10-29 14:20:03 +01:00
row0sel.cc Merge 10.6 into 10.11 2025-02-25 10:23:24 +02:00
row0uins.cc MDEV-35000: dict_table_close() breaks STATS_AUTO_RECALC 2025-02-28 09:00:16 +02:00
row0umod.cc MDEV-35000: dict_table_close() breaks STATS_AUTO_RECALC 2025-02-28 09:00:16 +02:00
row0undo.cc MDEV-32175: Reduce page_align(), page_offset() calls 2024-11-21 11:01:30 +02:00
row0upd.cc MDEV-35000: dict_table_close() breaks STATS_AUTO_RECALC 2025-02-28 09:00:16 +02:00
row0vers.cc Merge 10.6 into 10.11 2024-11-29 13:43:17 +02:00