[MDEV-8876] Table_lock_waited is not counted if table is write locked Created: 2015-09-30 Updated: 2015-10-28 Resolved: 2015-10-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Locking |
| Affects Version/s: | 10.1.7 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Trivial |
| Reporter: | Michaël de groot | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS 6.7 |
||
| Description |
|
Hi, table_lock_waited is not increased if an INSERT has to wait for a lock table. Reproduce: Command output:
|
| Comments |
| Comment by Elena Stepanova [ 2015-10-28 ] |
|
Table_locks_waited is a counter for table-level locks, while in this case the inserting thread waits for a metadata lock (it can be seen in SHOW PROCESSLIST output). If you use a READ lock instead, you'll see the counter increase. |