mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Backport of:
------------------------------------------------------------ revno: 2630.4.14 committer: Dmitry Lenev <dlenev@mysql.com> branch nick: mysql-6.0-3726-w timestamp: Wed 2008-05-28 12:16:03 +0400 message: WL#3726 "DDL locking for all metadata objects". After review fixes in progress. Removed unused code and adjusted names of functions/methods to better reflect their current function.
This commit is contained in:
@@ -487,7 +487,8 @@ bool mysql_create_or_drop_trigger(THD *thd, TABLE_LIST *tables, bool create)
|
||||
if (!result && thd->locked_tables)
|
||||
{
|
||||
/* Make table suitable for reopening */
|
||||
close_data_files_and_morph_locks(thd, tables->db, tables->table_name);
|
||||
close_data_files_and_leave_as_placeholders(thd, tables->db,
|
||||
tables->table_name);
|
||||
thd->in_lock_tables= 1;
|
||||
if (reopen_tables(thd, 1))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user