Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-8371

METADATA_LOCK_INFO query id information

    Details

    • Type: Task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Fix Version/s: 10.1
    • Component/s: Plugins
    • 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

        Gliffy Diagrams

          Attachments

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                serg Sergei Golubchik
                Reporter:
                rspadim roberto spadim
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: