mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Backport of:
------------------------------------------------------------ revno: 2617.68.25 committer: Dmitry Lenev <dlenev@mysql.com> branch nick: mysql-next-bg-pre2-2 timestamp: Wed 2009-09-16 18:26:50 +0400 message: Follow-up for one of pre-requisite patches for fixing bug #30977 "Concurrent statement using stored function and DROP FUNCTION breaks SBR". Made enum_mdl_namespace enum part of MDL_key class and removed MDL_ prefix from the names of enum members. In order to do the latter changed name of PROCEDURE symbol to PROCEDURE_SYM (otherwise macro which was automatically generated for this symbol conflicted with MDL_key::PROCEDURE enum member).
This commit is contained in:
@ -1888,7 +1888,7 @@ bool Table_triggers_list::change_table_name(THD *thd, const char *db,
|
||||
In the future, only an exclusive metadata lock will be enough.
|
||||
*/
|
||||
#ifndef DBUG_OFF
|
||||
if (thd->mdl_context.is_exclusive_lock_owner(MDL_TABLE, db, old_table))
|
||||
if (thd->mdl_context.is_exclusive_lock_owner(MDL_key::TABLE, db, old_table))
|
||||
safe_mutex_assert_owner(&LOCK_open);
|
||||
#endif
|
||||
|
||||
@ -2057,7 +2057,7 @@ add_tables_and_routines_for_triggers(THD *thd,
|
||||
|
||||
if (trigger)
|
||||
{
|
||||
MDL_key key(MDL_TRIGGER, trigger->m_db.str, trigger->m_name.str);
|
||||
MDL_key key(MDL_key::TRIGGER, trigger->m_db.str, trigger->m_name.str);
|
||||
|
||||
if (sp_add_used_routine(prelocking_ctx, thd->stmt_arena,
|
||||
&key, table_list->belong_to_view))
|
||||
|
Reference in New Issue
Block a user