[MDEV-6864] extend mdl_info plugin Created: 2014-10-13  Updated: 2015-10-29

Status: Open
Project: MariaDB Server
Component/s: Plugins
Fix Version/s: None

Type: Task Priority: Minor
Reporter: roberto spadim Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-4704 PROCESSLIST - Query Rank execution order Open

 Description   

include some informations to metadata_lock_info plugin....
there're two lists of granted and waiting locks, should be nice expose this number at information schema:
( https://github.com/MariaDB/server/blob/10.1/sql/mdl.cc#L448 )

  /** List of granted tickets for this lock. */
  Ticket_list m_granted;
  /** Tickets for contexts waiting to acquire a lock. */
  Ticket_list m_waiting;

should be nice another table to know what locks we are talking about...
something like:

thread_id database table key original_mdl_id granted

where original_mdl_id is a primary key between the metadata_lock information schema table and metadata_lock_lists new table
'granted' could be 'waiting','granted'
this allow find what thread is waiting lock or not, and a easier filter to metadata_lock information schema


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