mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02: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:
parent
8250824a12
commit
e4fde57712
16 changed files with 122 additions and 134 deletions
|
|
@ -3119,14 +3119,6 @@ int ha_federated::real_connect()
|
|||
String sql_query(buffer, sizeof(buffer), &my_charset_bin);
|
||||
DBUG_ENTER("ha_federated::real_connect");
|
||||
|
||||
/*
|
||||
Bug#25679
|
||||
Ensure that we do not hold the LOCK_open mutex while attempting
|
||||
to establish Federated connection to guard against a trivial
|
||||
Denial of Service scenerio.
|
||||
*/
|
||||
mysql_mutex_assert_not_owner(&LOCK_open);
|
||||
|
||||
DBUG_ASSERT(mysql == NULL);
|
||||
|
||||
if (!(mysql= mysql_init(NULL)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue