mariadb/storage/rocksdb/mysql-test
Nikita Malyavin 290b573e62 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-10-10 16:56:19 +02:00
..
rocksdb Rework how global temporary tables are dropped 2025-10-10 16:56:19 +02:00
rocksdb_hotbackup test.cnf files should !include default_my.cnf 2024-02-03 11:22:20 +01:00
rocksdb_rpl Merge branch '11.8' into 12.0 2025-07-31 20:55:47 +02:00
rocksdb_stress Fix typos in mysql-test/ 2025-04-29 13:53:16 +10:00
rocksdb_sys_vars Merge branch '11.8' into 12.0 2025-05-22 09:22:55 +02:00
storage_engine Remove dates from all rdiff files 2025-01-05 16:40:11 +02:00