MySQL 5.1 added a long-needed feature: INFORMATION_SCHEMA tables for inspecting locks held and waited-for inside of InnoDB. With this addition, it became possible to figure out who is blocking whom.
MySQL 5.5 changed a lot more things inside the server. One of the
new features is improved metadata locking. This solves a lot of
inconsistencies and bugs that were previously possible. The
output of SHOW PROCESSLIST is also changed; instead
of the venerable Locked status, there are more
fine-grained status indicators such as Waiting for table
metadata lock.
Unfortunately, the additional locking is not possible for the DBA to inspect. Where InnoDB’s storage-engine-level locking used to be …
[Read more]