From b7f9c894236c38cb40b5ca70e36d23497fcc01be Mon Sep 17 00:00:00 2001 From: Sergey Vojtovich Date: Wed, 14 Aug 2013 12:48:50 +0400 Subject: MDEV-4702 - Reduce usage of LOCK_open Following variables do not require LOCK_open protection anymore: - table_def_cache (renamed to tdc_hash) is protected by rw-lock LOCK_tdc_hash; - table_def_shutdown_in_progress doesn't need LOCK_open protection; - last_table_id use atomics; - TABLE_SHARE::ref_count (renamed to TABLE_SHARE::tdc.ref_count) is protected by TABLE_SHARE::tdc.LOCK_table_share; - TABLE_SHARE::next, ::prev (renamed to tdc.next and tdc.prev), oldest_unused_share, end_of_unused_share are protected by LOCK_unused_shares; - TABLE_SHARE::m_flush_tickets (renamed to tdc.m_flush_tickets) is protected by TABLE_SHARE::tdc.LOCK_table_share; - refresh_version (renamed to tdc_version) use atomics. --- sql/sql_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/sql_manager.cc') diff --git a/sql/sql_manager.cc b/sql/sql_manager.cc index e9ac55730d3..7ef320b30d2 100644 --- a/sql/sql_manager.cc +++ b/sql/sql_manager.cc @@ -110,7 +110,7 @@ pthread_handler_t handle_manager(void *arg __attribute__((unused))) if (error == ETIMEDOUT || error == ETIME) { - tdc_flush_unused_tables(); + tc_purge(); error = 0; reset_flush_time = TRUE; } -- cgit v1.2.1