mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-5864 - Reduce usage of LOCK_open: TABLE_SHARE::tdc.free_tables
Let TABLE_SHARE::tdc.free_tables, TABLE_SHARE::tdc.all_tables, TABLE_SHARE::tdc.flushed and corresponding invariants be protected by per-share TABLE_SHARE::tdc.LOCK_table_share instead of global LOCK_open.
This commit is contained in:
@ -1115,8 +1115,6 @@ void mysql_ha_flush(THD *thd)
|
||||
SQL_HANDLER *hash_tables;
|
||||
DBUG_ENTER("mysql_ha_flush");
|
||||
|
||||
mysql_mutex_assert_not_owner(&LOCK_open);
|
||||
|
||||
/*
|
||||
Don't try to flush open HANDLERs when we're working with
|
||||
system tables. The main MDL context is backed up and we can't
|
||||
|
Reference in New Issue
Block a user