mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-5619: CREATE OR REPLACE does not release MDL_EXCLUSIVE upon failure
mysql-test/r/create_or_replace.result: Added test of releasing of metadata locks mysql-test/t/create_or_replace.test: Added test of releasing of metadata locks sql/handler.h: Added marker if table was deleted as part of CREATE OR REPLACE sql/sql_base.cc: Added Locked_tables_list::unlock_locked_table() sql/sql_class.h: New prototypes sql/sql_insert.cc: Unlock metadata locks for deleted table in case of error. Also do unlock tables if this was the only locked table. sql/sql_table.cc: Unlock metadata locks for deleted table in case of error. Also do unlock tables if this was the only locked table.
This commit is contained in:
@ -1518,6 +1518,7 @@ public:
|
||||
MYF(MY_THREAD_SPECIFIC));
|
||||
}
|
||||
void unlock_locked_tables(THD *thd);
|
||||
void unlock_locked_table(THD *thd, MDL_ticket *mdl_ticket);
|
||||
~Locked_tables_list()
|
||||
{
|
||||
reset();
|
||||
|
Reference in New Issue
Block a user