[MDEV-5597] Reduce usage of LOCK_open: LOCK_flush Created: 2014-01-31  Updated: 2014-03-14  Resolved: 2014-02-13

Status: Closed
Project: MariaDB Server
Component/s: None
Fix Version/s: 10.0.9

Type: Task Priority: Major
Reporter: Sergey Vojtovich Assignee: Sergey Vojtovich
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-4702 Reduce usage of LOCK_open Closed
relates to MDEV-4956 Reduce usage of LOCK_open: TABLE_SHAR... Closed
relates to MDEV-5388 Reduce usage of LOCK_open: unused_tables Closed
relates to MDEV-5403 Reduce usage of LOCK_open: tc_count Closed
relates to MDEV-5492 Reduce usage of LOCK_open: TABLE::in_use Closed
relates to MDEV-5864 Reduce usage of LOCK_open: TABLE_SHAR... Closed

 Description   

There is relationship between LOCK_flush and LOCK_open. Even though it is not on a hot path, it indirectly interferes with TABLE_SHARE::tdc.flushed. The latter is on hot path and will eventually be moved out of LOCK_open.

The sole purpose of LOCK_flush is to let tdc_remove_table() wait for concurrent FLUSH TABLES. Replace global rwlock with per-share condition variable.



 Comments   
Comment by Sergey Vojtovich [ 2014-01-31 ]

Sergei, please review patch for this task.

Comment by Sergey Vojtovich [ 2014-02-13 ]

Pushed to 10.0.9, revno: 4005, revision-id: svoj@mariadb.org-20140213071355-psk0jpsarx2u7myc

Generated at Thu Feb 08 07:05:35 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.