mariadb/storage
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
..
archive Merge 10.6 into 10.11 2024-06-27 10:26:09 +03:00
blackhole MDEV-34348: my_hash_get_key fixes 2024-11-23 08:14:22 -07:00
columnstore Merge branch '10.6' into 10.11 2025-01-30 11:55:13 +01:00
connect Merge 10.6 into 10.11 2025-05-26 08:10:47 +03:00
csv Merge 10.6 into 10.11 2024-11-29 13:43:17 +02:00
example Remove dates from all rdiff files 2025-01-05 16:40:11 +02:00
federated Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
federatedx Merge branch '10.6' into '10.11' 2025-04-16 03:34:40 +02:00
heap Merge 10.5 into 10.6 2025-01-20 09:57:37 +02:00
innobase MDEV-36787 ROLLBACK TO SAVEPOINT fails with assert invalid state 2025-05-26 20:20:40 +05:30
maria Merge 10.6 into 10.11 2025-05-26 08:10:47 +03:00
mroonga Merge 10.6 into 10.11 2025-05-26 08:10:47 +03:00
myisam Merge 10.6 into 10.11 2025-05-26 08:10:47 +03:00
myisammrg Merge 10.6 into 10.11 2025-01-08 12:51:26 +02:00
oqgraph Merge 10.6 into 10.11 2024-11-29 13:43:17 +02:00
perfschema Merge 10.6 into 10.11 2025-05-21 07:36:35 +03:00
rocksdb Merge 10.6 into 10.11 2025-05-21 07:36:35 +03:00
sequence MDEV-33746 Supply missing override markings 2024-06-20 11:32:13 -04:00
sphinx Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
spider Merge 10.6 into 10.11 2025-05-21 07:36:35 +03:00
test_sql_discovery Merge 10.5 into 10.6 2024-06-24 13:09:47 +03:00