Show all current locks from get_lock

前端 未结 7 1494
渐次进展
渐次进展 2020-12-13 12:00

Is there any way to select / show all current locks that have been taken out using the GET_LOCK function?

Note that GET_LOCK locks are different from ta

7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-13 12:57

    Starting with MySQL 5.7, the performance schema exposes all metadata locks, including locks related to the GET_LOCK() function.

    See http://dev.mysql.com/doc/refman/5.7/en/metadata-locks-table.html

提交回复
热议问题