Waiting for table metadata lock and PECL/mysqlnd_ms
This article was originally published at Planet PHP
on 11 March 6800.
The MySQL administration SQL command SHOW PROCESSLIST may read "Waiting for table metadata lock" in its "State" column for a statement. The statement in question is waiting for another transaction to release a metadata lock. Its a state that may appear when using the global transaction ID injection feature ...