mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Backport of:
------------------------------------------------------------ revno: 2630.8.3 committer: Dmitry Lenev <dlenev@mysql.com> branch nick: mysql-6.0-3726-w4 timestamp: Thu 2008-06-05 10:48:36 +0400 message: WL#3726 "DDL locking for all metadata objects". After-review fixes in progress. Adjust some comments that were using old terminology (name locks instead of exclusive metadata locks), brought some of them up-to-date with current situation in code.
This commit is contained in:
@ -3271,7 +3271,8 @@ int get_all_tables(THD *thd, TABLE_LIST *tables, COND *cond)
|
||||
/*
|
||||
We should not introduce deadlocks even if we already have some
|
||||
tables open and locked, since we won't lock tables which we will
|
||||
open and will ignore possible name-locks for these tables.
|
||||
open and will ignore pending exclusive metadata locks for these
|
||||
tables by using high-priority requests for shared metadata locks.
|
||||
*/
|
||||
thd->reset_n_backup_open_tables_state(&open_tables_state_backup);
|
||||
|
||||
@ -7301,8 +7302,8 @@ bool show_create_trigger(THD *thd, const sp_name *trg_name)
|
||||
Open the table by name in order to load Table_triggers_list object.
|
||||
|
||||
NOTE: there is race condition here -- the table can be dropped after
|
||||
LOCK_open is released. It will be fixed later by introducing
|
||||
acquire-shared-table-name-lock functionality.
|
||||
LOCK_open is released. It will be fixed later by acquiring shared
|
||||
metadata lock on trigger or table name.
|
||||
*/
|
||||
|
||||
uint num_tables; /* NOTE: unused, only to pass to open_tables(). */
|
||||
|
Reference in New Issue
Block a user