[MDEV-8371] METADATA_LOCK_INFO query id information Created: 2015-06-24  Updated: 2017-05-30

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


 Description   

Hi guys, i`m trying to get tables used by a query without parsing it, i`m using these table from information_schema: METADATA_LOCK_INFO, INNODB_% (trx_mysql_thread_id/trx_id and others columns), PROCESSLIST
the problem is: ID from PROCESSLIST don't change as fast as QUERY_ID, and a ID can represent many QUERY_ID in one second (i have connections running +1000 qps) in this case, what we should have is QUERY_ID at INNODB_% and METADATA_LOCK_INFO
could we add this column? i don`t know about innodb_locks source but at metadata_lock_info is easy to patch, this solve my problem with wrong query_id/thread_id


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