This repository was archived by the owner on Aug 28, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,35 @@ mysql> select * from innodb_buffer_stats_by_table;
146146+ -- ------------------------+------------------------------------+------------+-----------+-------+--------------+-----------+-------------+
147147```
148148
149+ #### innodb_lock_waits / x$innodb_lock_waits
150+
151+ ##### Description
152+
153+ Gives a snapshot of which InnoDB locks transactions are waiting for.
154+
155+ ##### Example
156+
157+ ``` SQL
158+ mysql> SELECT * FROM innodb_lock_waits\G
159+ *************************** 1 . row ***************************
160+ waiting_trx_id: 805505
161+ waiting_thread: 78
162+ waiting_query: UPDATE t1 SET val = ' c2' WHERE id = 3
163+ waiting_lock_id: 805505 :132 :3 :28
164+ waiting_lock_mode: X
165+ waiting_lock_type: RECORD
166+ waiting_lock_table: ` db1` .` t1`
167+ waiting_lock_index: PRIMARY
168+ blocking_trx_id: 805504
169+ blocking_thread: 77
170+ blocking_query: UPDATE t1 SET val = CONCAT(' c1' , SLEEP(10 )) WHERE id = 3
171+ blocking_lock_id: 805504 :132 :3 :28
172+ blocking_lock_mode: X
173+ blocking_lock_type: RECORD
174+ blocking_lock_table: ` db1` .` t1`
175+ blocking_lock_index: PRIMARY
176+ ```
177+
149178#### io_by_thread_by_latency / x$io_by_thread_by_latency
150179
151180##### Description
You can’t perform that action at this time.
0 commit comments