If in understand correctly, running FLUSH TABLES WITH READ LOCK acquires a global read lock.
Is there any command I can run in the mysql client which shows me that lock is currently acquired?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try this :
It will show owner of locks and waiters (and lot of other stuff related to innodb)
http://dev.mysql.com/doc/refman/5.0/en/innodb-monitors.html
http://www.xaprb.com/blog/2006/07/31/how-to-analyze-innodb-mysql-locks/