mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Backport of:
------------------------------------------------------------ revno: 2630.4.16 committer: Dmitry Lenev <dlenev@mysql.com> branch nick: mysql-6.0-3726-w timestamp: Thu 2008-05-29 09:45:02 +0400 message: WL#3726 "DDL locking for all metadata objects". After review changes in progress. Tweaked some comments and did some renames to avoid ambiguites.
This commit is contained in:
@ -798,6 +798,7 @@ void mysql_ha_flush(THD *thd)
|
||||
for (uint i= 0; i < thd->handler_tables_hash.records; i++)
|
||||
{
|
||||
hash_tables= (TABLE_LIST*) my_hash_element(&thd->handler_tables_hash, i);
|
||||
/* TABLE::mdl_lock is 0 for temporary tables so we need extra check. */
|
||||
if (hash_tables->table &&
|
||||
(hash_tables->table->mdl_lock &&
|
||||
mdl_has_pending_conflicting_lock(hash_tables->table->mdl_lock) ||
|
||||
|
Reference in New Issue
Block a user