This document discusses metadata locking in MySQL 5.5. It begins with an introduction to metadata locking and defines problems related to ALTER statements violating ACID properties, breaking replication, and causing deadlocks. It then covers how metadata locks work, how deadlock detection is implemented, how storage engines can integrate with metadata locking, and the performance impact of metadata locking. Finally, it outlines the roadmap for future improvements such as cross-storage-engine deadlock detection, consistent DDL across clusters, and sharding the metadata lock set.