mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
Backport of:
------------------------------------------------------------ revno: 2630.4.7 committer: Dmitry Lenev <dlenev@mysql.com> branch nick: mysql-6.0-3726-w timestamp: Sun 2008-05-25 11:19:02 +0400 message: WL#3726 "DDL locking for all metadata objects". Fixed silly mistake in test case which caused sporadic kill.test failures. mysql-test/t/kill.test: Fixed silly mistake in several places where I was supposed to be waiting for certain state of connection I actually forgot to invoke wait_condition.inc script altough set appropriate variable. Indeed this caused sporadical test failures.
This commit is contained in:
parent
eff3780dd8
commit
6fd0827876
1 changed files with 11 additions and 0 deletions
|
@ -374,6 +374,7 @@ let $wait_condition=
|
|||
select count(*) = 1 from information_schema.processlist
|
||||
where state = "Waiting for table" and
|
||||
info = "drop table t1";
|
||||
--source include/wait_condition.inc
|
||||
--replace_result $ID ID
|
||||
eval kill query $ID;
|
||||
--echo # Switching to connection 'ddl'
|
||||
|
@ -389,6 +390,7 @@ let $wait_condition=
|
|||
select count(*) = 1 from information_schema.processlist
|
||||
where state = "Waiting for table" and
|
||||
info = "create trigger t1_bi before insert on t1 for each row set @a:=1";
|
||||
--source include/wait_condition.inc
|
||||
--replace_result $ID ID
|
||||
eval kill query $ID;
|
||||
--echo # Switching to connection 'ddl'
|
||||
|
@ -407,6 +409,7 @@ let $wait_condition=
|
|||
select count(*) = 1 from information_schema.processlist
|
||||
where state = "Waiting for table" and
|
||||
info = "alter table t1 add column j int";
|
||||
--source include/wait_condition.inc
|
||||
--replace_result $ID ID
|
||||
eval kill query $ID;
|
||||
--echo # Switching to connection 'ddl'
|
||||
|
@ -422,6 +425,7 @@ let $wait_condition=
|
|||
select count(*) = 1 from information_schema.processlist
|
||||
where state = "Waiting for table" and
|
||||
info = "alter table t1 rename to t2";
|
||||
--source include/wait_condition.inc
|
||||
--replace_result $ID ID
|
||||
eval kill query $ID;
|
||||
--echo # Switching to connection 'ddl'
|
||||
|
@ -435,6 +439,7 @@ let $wait_condition=
|
|||
select count(*) = 1 from information_schema.processlist
|
||||
where state = "Waiting for table" and
|
||||
info = "alter table t1 disable keys";
|
||||
--source include/wait_condition.inc
|
||||
--replace_result $ID ID
|
||||
eval kill query $ID;
|
||||
--echo # Switching to connection 'ddl'
|
||||
|
@ -449,6 +454,7 @@ let $wait_condition=
|
|||
select count(*) = 1 from information_schema.processlist
|
||||
where state = "Waiting for table" and
|
||||
info = "alter table t1 alter column i set default 100";
|
||||
--source include/wait_condition.inc
|
||||
--replace_result $ID ID
|
||||
eval kill query $ID;
|
||||
--echo # Switching to connection 'ddl'
|
||||
|
@ -470,6 +476,7 @@ let $wait_condition=
|
|||
select count(*) = 1 from information_schema.processlist
|
||||
where state = "Waiting for table" and
|
||||
info = "alter table t2 alter column i set default 100";
|
||||
--source include/wait_condition.inc
|
||||
--replace_result $ID ID
|
||||
eval kill query $ID;
|
||||
--echo # Switching to connection 'ddl'
|
||||
|
@ -494,6 +501,7 @@ let $wait_condition=
|
|||
select count(*) = 1 from information_schema.processlist
|
||||
where state = "Waiting for table" and
|
||||
info = "rename tables t1 to t3, t2 to t1";
|
||||
--source include/wait_condition.inc
|
||||
let $ID2= `select connection_id()`;
|
||||
--send insert into t2 values (1)
|
||||
--echo # Switching to connection 'default'
|
||||
|
@ -502,6 +510,7 @@ let $wait_condition=
|
|||
select count(*) = 1 from information_schema.processlist
|
||||
where state = "Waiting for table" and
|
||||
info = "insert into t2 values (1)";
|
||||
--source include/wait_condition.inc
|
||||
--replace_result $ID2 ID2
|
||||
eval kill query $ID2;
|
||||
--echo # Switching to connection 'dml'
|
||||
|
@ -529,6 +538,7 @@ let $wait_condition=
|
|||
select count(*) = 1 from information_schema.processlist
|
||||
where state = "Flushing tables" and
|
||||
info = "flush tables";
|
||||
--source include/wait_condition.inc
|
||||
--send select * from t1
|
||||
--echo # Switching to connection 'default'
|
||||
connection default;
|
||||
|
@ -536,6 +546,7 @@ let $wait_condition=
|
|||
select count(*) = 1 from information_schema.processlist
|
||||
where state = "Waiting for table" and
|
||||
info = "select * from t1";
|
||||
--source include/wait_condition.inc
|
||||
--replace_result $ID2 ID2
|
||||
eval kill query $ID2;
|
||||
--echo # Switching to connection 'dml'
|
||||
|
|
Loading…
Reference in a new issue