Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
Description
The call stack for DROP TEMPORARY TABLE is:
THD::drop_temporary_table()
mysql_rm_table_no_locks()
free_tmp_table_share()
THD::free_tmp_table_share()
THD::rm_temporary_table()
ha_delete_table()
The problem is that free_temp_table_share() is a void function and thus the caller doesn't know if ha_delete_table() failed or not.
How to repeat:
in gdb, put a breakpoint at: maria_delete_table()
Execute in command tool:
create temporary table t1 (a int) engine=aria;
drop temporary table t1;
Attachments
Issue Links
- relates to
-
MDEV-11412 Ensure that table is truly dropped when using DROP TABLE
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Oleksandr Byelkin [ sanja ] |
Fix Version/s | 10.7 [ 24805 ] | |
Fix Version/s | 10.6 [ 24028 ] |
Fix Version/s | 10.8 [ 26121 ] | |
Fix Version/s | 10.7 [ 24805 ] |
Workflow | MariaDB v3 [ 110399 ] | MariaDB v4 [ 131316 ] |
Fix Version/s | 10.9 [ 26905 ] | |
Fix Version/s | 10.8 [ 26121 ] |
Issue Type | Task [ 3 ] | Bug [ 1 ] |
Assignee | Oleksandr Byelkin [ sanja ] | Daniel Black [ danblack ] |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.9 [ 26905 ] |
Link |
This issue relates to |
Fix Version/s | 10.5.20 [ 28512 ] | |
Fix Version/s | 10.6.13 [ 28514 ] | |
Fix Version/s | 10.8.8 [ 28518 ] | |
Fix Version/s | 10.9.6 [ 28520 ] | |
Fix Version/s | 10.10.4 [ 28522 ] | |
Fix Version/s | 10.11.3 [ 28524 ] | |
Fix Version/s | 11.0.2 [ 28706 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
MDEV-11412in 10.5 is when THD::rm_temporary_table started emitting warnings about deleted files errors (except ENOENT).As future feature:
If we could check O_TMPFILE_works from
MDEV-15584/ 3edac3f18d2d74f68e6f9f9b41e5d05a5c8ca9c5 we wouldn't even need to delete it.