1
--source include/not_embedded.inc
3
connect (con1,localhost,root,,);
4
connect (con2,localhost,root,,);
10
drop table if exists t1;
13
create table t1 (n int);
14
insert into t1 values (1),(2),(3);
22
# Bug#10374 GET_LOCK does not let connection to close on the server side if it's aborted
26
SELECT GET_LOCK("dangling", 0);
27
connect(con1, localhost, root,,);
29
--send SELECT GET_LOCK('dangling', 3600);
32
SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE = "User lock"
33
AND INFO = "SELECT GET_LOCK('dangling', 3600)";
34
--source include/wait_condition.inc
37
SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE = "User lock"
38
AND INFO = "SELECT GET_LOCK('dangling', 3600)";
39
--source include/wait_condition.inc
40
connect(con1, localhost, root,,);
41
--send SELECT GET_LOCK('dangling', 3600);
44
SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE = "User lock"
45
AND INFO = "SELECT GET_LOCK('dangling', 3600)";
46
--source include/wait_condition.inc
47
SELECT RELEASE_LOCK('dangling');