今までは
mysql56 1> SELECT @@pseudo_thread_id;
+--------------------+
| @@pseudo_thread_id |
+--------------------+
| 3 |
+--------------------+
1 row in set (0.00 sec)
mysql56 1>SELECT get_lock('yoku0825', 1);
+-------------------------+
| get_lock('yoku0825', 1) |
+-------------------------+
| 1 |
+-------------------------+
1 row in set (0.02 sec)
mysql56 2> SELECT is_used_lock('yoku0825');
+--------------------------+
| is_used_lock('yoku0825') |
+--------------------------+
| 3 |
+--------------------------+
1 row in set (0.00 sec)
こんなロックを取った状態で次のロックを取ると
mysql56 1> SELECT get_lock('yoku08253', 1);[さらに読む]
+--------------------------+
| get_lock('yoku08253', …