20
# Bug#10374 GET_LOCK does not let connection to close on the server side if it's aborted
24
SELECT GET_LOCK("dangling", 0);
25
connect(con1, localhost, root,,);
27
--send SELECT GET_LOCK('dangling', 3600);
30
SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE = "User lock"
31
AND INFO = "SELECT GET_LOCK('dangling', 3600)";
32
--source include/wait_condition.inc
35
SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE = "User lock"
36
AND INFO = "SELECT GET_LOCK('dangling', 3600)";
37
--source include/wait_condition.inc
38
connect(con1, localhost, root,,);
39
--send SELECT GET_LOCK('dangling', 3600);
42
SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE = "User lock"
43
AND INFO = "SELECT GET_LOCK('dangling', 3600)";
44
--source include/wait_condition.inc
45
SELECT RELEASE_LOCK('dangling');