mariadb/storage/innobase/handler
Thirunarayanan Balathandayuthapani 80230b6fc6 MDEV-36787 ROLLBACK TO SAVEPOINT fails with assert invalid state
Reason:
========
  SAVEPOINT A;
  <Bulk DDL FAILS>
  ROLLBACK TO SAVEPOINT A;

When DDL bulk operation fails, InnoDB does rollback the whole transaction
and it makes the transaction state to TRX_STATE_NOT_STARTED. In
innobase_rollback_to_savepoint(), InnoDB fails with invalid transaction
state.

Fix:
===
- InnoDB should rollback the bulk insert operation alone instead of
complete transaction rollback when InnoDB bulk DDL operation fails.
This can be achieved by bulk_rollback_low().

row_mysql_handle_errors(): Avoid complete rollback of transaction
when DB_TEMP_FILE_WRITE_FAIL error happens.

convert_error_code_to_mysql(): Since InnoDB does partial
rollback, remove innodb_transaction_abort() call for
DB_TEMP_FILE_WRITE_FAIL error.
2025-05-26 20:20:40 +05:30
..
ha_innodb.cc MDEV-36787 ROLLBACK TO SAVEPOINT fails with assert invalid state 2025-05-26 20:20:40 +05:30
ha_innodb.h MDEV-35000: dict_table_close() breaks STATS_AUTO_RECALC 2025-02-28 09:00:16 +02:00
handler0alter.cc MDEV-36504 Memory leak after CREATE TABLE..SELECT 2025-04-17 12:04:09 +05:30
i_s.cc MDEV-29445: Reimplement SET GLOBAL innodb_buffer_pool_size 2025-03-26 17:05:44 +02:00
i_s.h Merge 10.5 into 10.6 2021-08-23 11:21:33 +03:00