mariadb/storage
Monty eedee45885 MDEV-23132 Assertion `trn->locked_tables == 0 && trn->used_instances == 0' failed in trnman_end_trn
The reason for the crash was that two tables where updating Aria's
TRN->used_instances at the same time.  This could happen when a
thread started a sub transaction with Aria tables, like reading a
stored procedure from the proc table, at the same time another table
was clearing the table list after committing a transaction involving
Aria tables.  The timing window for this to happen is very small,
which is why we did not notice this issue for 5 years.

The fix was to change reset_thd_trn() to clear the table links directly,
instead of calling _ma_reset_trn_for_table() which removed the table
from the linked list, which included updating TRN->used_instances.

This bug could happen when maria_commit or maria_rollback() where
called but not in ha_maria::implicit_commit() which had already
a fix for this problem.

Other things:
- Removed duplicate call to thd_set_ha_data(thd, maria_hton, trn)
  in ha_maria::implicit_commit() and maria_commit() when TRN is null.
2025-12-01 11:40:04 +02:00
..
archive Merge 10.5 into 10.6 2024-06-24 13:09:47 +03:00
blackhole MDEV-34348: my_hash_get_key fixes 2024-11-23 08:14:22 -07:00
columnstore columnstore 6.4.12-1 2025-10-21 16:32:32 +02:00
connect Fixed compiler warning from clang in connect/tabxcl.cpp 2025-06-02 14:02:53 +03:00
csv Fix clang-21 -Wunnecessary-virtual-specifier 2025-08-21 15:17:44 +03:00
example MDEV-36729: ha_example::show_func_example is incorrectly defined 2025-05-29 10:10:52 +10:00
federated Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
federatedx MDEV-36341 UBSAN: FederatedX fill_server runtime error: applying non-zero offset to null pointer 2025-04-07 11:04:53 +02:00
heap Merge 10.5 into 10.6 2025-01-20 09:57:37 +02:00
innobase MDEV-24558: Assertion !index->is_spatial() failed 2025-12-01 08:59:44 +05:30
maria MDEV-23132 Assertion `trn->locked_tables == 0 && trn->used_instances == 0' failed in trnman_end_trn 2025-12-01 11:40:04 +02:00
mroonga MDEV-34388: Stack overflow on Alpine Linux (postfix) mroonga+asan 2025-05-28 17:07:53 +10:00
myisam MDEV-37505 myisamchk -V crashes 2025-09-04 17:20:02 +02:00
myisammrg Remove dates from all rdiff files 2025-01-05 16:40:11 +02:00
oqgraph Merge 10.5 into 10.6 2024-11-29 12:37:46 +02:00
perfschema Fix clang-21 -Wuninitialized-const-pointer 2025-08-21 14:38:48 +03:00
rocksdb MDEV-34388: Stack overflow on Alpine Linux 2025-05-20 17:27:05 +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 MDEV-30265 Spider: Add CODING_STANDARDS 2025-10-22 23:11:13 +11:00
test_sql_discovery Merge 10.5 into 10.6 2024-06-24 13:09:47 +03:00