mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Merge from mysql-5.5-runtime to mysql-5.5-bugfixing.
This commit is contained in:
@@ -30,7 +30,7 @@ connection master1;
|
||||
connection master;
|
||||
let $wait_condition=
|
||||
SELECT COUNT(*) = 1 FROM information_schema.processlist
|
||||
WHERE state = "Waiting for table" AND info = "DROP TABLE tt";
|
||||
WHERE state = "Waiting for table metadata lock" AND info = "DROP TABLE tt";
|
||||
--source include/wait_condition.inc
|
||||
ROLLBACK TO SAVEPOINT insert_statement;
|
||||
COMMIT;
|
||||
|
||||
@@ -655,7 +655,8 @@ connection master;
|
||||
connection master1;
|
||||
--echo # Waitng for 'insert into t1 ...' to get blocked on table lock...
|
||||
let $wait_condition=select count(*)=1 from information_schema.processlist
|
||||
where state='Waiting for table' and info='insert into t1 (a) values (f1())';
|
||||
where state='Waiting for table metadata lock' and
|
||||
info='insert into t1 (a) values (f1())';
|
||||
--source include/wait_condition.inc
|
||||
--echo # Sending 'drop function f1'. It will wait till insert finishes.
|
||||
--send drop function f1;
|
||||
@@ -663,7 +664,7 @@ where state='Waiting for table' and info='insert into t1 (a) values (f1())';
|
||||
connection default;
|
||||
--echo # Check that 'drop function f1' gets blocked.
|
||||
let $wait_condition=select count(*)=1 from information_schema.processlist
|
||||
where state='Waiting for table' and info='drop function f1';
|
||||
where state='Waiting for stored function metadata lock' and info='drop function f1';
|
||||
--source include/wait_condition.inc
|
||||
--echo # Now let's let 'insert' go through...
|
||||
unlock tables;
|
||||
|
||||
@@ -56,7 +56,7 @@ let $wait_condition=
|
||||
connection master;
|
||||
let $wait_condition=
|
||||
select count(*) = 1 from information_schema.processlist
|
||||
where state = "Waiting for table" and info = "drop view v1";
|
||||
where state = "Waiting for table metadata lock" and info = "drop view v1";
|
||||
--source include/wait_condition.inc
|
||||
|
||||
select release_lock("lock_bg25144");
|
||||
@@ -106,7 +106,7 @@ let $wait_condition=
|
||||
connection master;
|
||||
let $wait_condition=
|
||||
select count(*) = 1 from information_schema.processlist
|
||||
where state = "Waiting for table" and
|
||||
where state = "Waiting for table metadata lock" and
|
||||
info = "alter view v1 as select * from t2";
|
||||
--source include/wait_condition.inc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user