mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-17896 Assertion `pfs->get_refcount() > 0' failed
Unfortunate DROP TEMPORARY..IF EXISTS on a regular table may allow subsequent CREATE TABLE statements to steal away the PFS_table_share instance from the dropped table.
This commit is contained in:
@ -2418,6 +2418,13 @@ int mysql_rm_table_no_locks(THD *thd, TABLE_LIST *tables, bool if_exists,
|
||||
ER_BAD_TABLE_ERROR,
|
||||
ER_THD(thd, ER_BAD_TABLE_ERROR),
|
||||
tbl_name.c_ptr_safe());
|
||||
|
||||
/*
|
||||
Our job is done here. This statement was added to avoid executing
|
||||
unnecessary code farther below which in some strange corner cases
|
||||
caused the server to crash (see MDEV-17896).
|
||||
*/
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user