RELEASE_ALL_LOCKS()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Enterprise Server
Topics on this page:
Overview
EXAMPLES
SELECT GET_LOCK('lck1',60);
+---------------------+
| GET_LOCK('lck1',60) |
+---------------------+
| 1 |
+---------------------+
SELECT GET_LOCK('lck2',60);
+---------------------+
| GET_LOCK('lck2',60) |
+---------------------+
| 1 |
+---------------------+
SELECT IS_USED_LOCK('lck1');
+----------------------+
| IS_USED_LOCK('lck1') |
+----------------------+
| 1234 |
+----------------------+
SELECT RELEASE_ALL_LOCKS();
+---------------------+
| RELEASE_ALL_LOCKS() |
+---------------------+
| 2 |
+---------------------+
SELECT IS_USED_LOCK('lck1');
+----------------------+
| IS_USED_LOCK('lck1') |
+----------------------+
| NULL |
+----------------------+