summaryrefslogtreecommitdiff
path: root/storage/federated
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2014-03-20 11:11:13 +0400
committerSergey Vojtovich <svoj@mariadb.org>2014-03-20 11:11:13 +0400
commite4fde57712afd106ccf9752ceadcdcac604da8d9 (patch)
tree38fa87f38f8af27d47f51bb9ebee3623b5b8bfcc /storage/federated
parent8250824a12fc173f14af8bb6a2cdbc29a94a84f0 (diff)
downloadmariadb-git-e4fde57712afd106ccf9752ceadcdcac604da8d9.tar.gz
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.
Diffstat (limited to 'storage/federated')
-rw-r--r--storage/federated/ha_federated.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/storage/federated/ha_federated.cc b/storage/federated/ha_federated.cc
index 8217d583599..e5d6c338388 100644
--- a/storage/federated/ha_federated.cc
+++ b/storage/federated/ha_federated.cc
@@ -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)))