mariadb/storage
Nikita Malyavin bba6ecc1ca Rework how global temporary tables are dropped
We're used to drop ON COMMIT DELETE child tables exactly as part of
commit hton call, however some parts of server rely on the fact that
table unlock happens *after* trans_commit/trans_rollback.

At the same time, we can't safely ignore unlocking for temporary tables,
since it's important for innodb.

The solution is to defer dropping to the stage after unlocking, i.e.
as part of close_thread_tables -> mark_tmp_tables_as_free_for_reuse.

THD::commit_global_tmp_tables: set the committed mark
THD::mark_tmp_tables_as_free_for_reuse: drop ON COMMIT DELETE tables if
the committed mark set.

Fixes MDEV-37394, MDEV-37690 and MDEV-37395
2025-09-26 02:08:06 +02:00
..
archive Merge branch '11.8' into main 2025-04-18 17:11:01 +02:00
blackhole Merge 11.4 into 11.7 2024-12-02 17:51:17 +02:00
columnstore Merge branch '10.6' into 10.11 2025-07-28 18:06:31 +02:00
connect Merge branch '12.0' into 12.1 2025-08-03 15:01:09 +02:00
csv Merge branch '11.8' into 12.0 2025-07-31 20:55:47 +02:00
example Merge branch '11.4' into 11.8 2025-06-18 07:43:24 +02:00
federated Merge branch '11.8' into 12.0 2025-07-31 20:55:47 +02:00
federatedx MDEV-35184 Corruption errors upon creation or usage of Federated table with vector key 2025-07-21 10:24:14 +02:00
heap Fix typos in C comments inside storage/ 2025-03-26 16:56:50 +04:00
innobase MDEV-35915 Implement Global temporary tables 2025-09-26 02:04:36 +02:00
maria rename HA_LEX_CREATE_GLOBAL_TMP_TABLE -> HA_LEX_CREATE_SHARED_ACCESS_TMP_TABLE 2025-09-26 00:58:05 +02:00
mroonga Merge branch '11.8' into 12.0 2025-06-18 07:50:39 +02:00
myisam Merge branch '12.0' into 12.1 2025-08-03 15:01:09 +02:00
myisammrg MDEV-28933: Per-table unique FOREIGN KEY constraint names 2025-07-08 12:30:27 +03:00
oqgraph Fix typos in C comments inside storage/ 2025-03-26 16:56:50 +04:00
perfschema MDEV-34817 perfschema.lowercase_fs_off fails on buildbot 2025-08-03 15:00:07 +02:00
rocksdb Rework how global temporary tables are dropped 2025-09-26 02:08:06 +02:00
sequence cleanup: extract transaction-related part of handlerton 2024-11-05 14:00:50 -08:00
sphinx Merge 11.4 into 11.7 2024-12-02 17:51:17 +02:00
spider Merge branch '12.0' into 12.1 2025-08-03 15:01:09 +02:00
test_sql_discovery MDEV-19123 Change default charset from latin1 to utf8mb4 2024-07-11 10:21:07 +04:00