mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Disabling test case.
Bug 34311: main.lock_multi.test fails.
This commit is contained in:
@@ -143,14 +143,4 @@ connection: default
|
|||||||
flush tables;
|
flush tables;
|
||||||
unlock tables;
|
unlock tables;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
drop table if exists t1,t2;
|
|
||||||
create table t1 (a int);
|
|
||||||
flush status;
|
|
||||||
lock tables t1 read;
|
|
||||||
insert into t1 values(1);;
|
|
||||||
unlock tables;
|
|
||||||
drop table t1;
|
|
||||||
select @tlwa < @tlwb;
|
|
||||||
@tlwa < @tlwb
|
|
||||||
1
|
|
||||||
End of 5.1 tests
|
End of 5.1 tests
|
||||||
|
@@ -440,34 +440,38 @@ disconnect flush;
|
|||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
||||||
#
|
#
|
||||||
# Bug#30331: Table_locks_waited shows inaccurate values
|
|
||||||
#
|
#
|
||||||
|
# This test case was disabled due to Bug#34311: main.lock_multy.test fails.
|
||||||
--disable_warnings
|
#
|
||||||
drop table if exists t1,t2;
|
# #
|
||||||
--enable_warnings
|
# # Bug#30331: Table_locks_waited shows inaccurate values
|
||||||
|
# #
|
||||||
create table t1 (a int);
|
#
|
||||||
flush status;
|
# --disable_warnings
|
||||||
lock tables t1 read;
|
# drop table if exists t1,t2;
|
||||||
let $tlwa= `show status like 'Table_locks_waited'`;
|
# --enable_warnings
|
||||||
connect (waiter,localhost,root,,);
|
#
|
||||||
connection waiter;
|
# create table t1 (a int);
|
||||||
--send insert into t1 values(1);
|
# flush status;
|
||||||
connection default;
|
# lock tables t1 read;
|
||||||
let $wait_condition=
|
# let $tlwa= `show status like 'Table_locks_waited'`;
|
||||||
select count(*) = 1 from information_schema.processlist
|
# connect (waiter,localhost,root,,);
|
||||||
where state = "Locked" and info = "insert into t1 values(1)";
|
# connection waiter;
|
||||||
--source include/wait_condition.inc
|
# --send insert into t1 values(1);
|
||||||
let $tlwb= `show status like 'Table_locks_waited'`;
|
# connection default;
|
||||||
unlock tables;
|
# let $wait_condition=
|
||||||
drop table t1;
|
# select count(*) = 1 from information_schema.processlist
|
||||||
disconnect waiter;
|
# where state = "Locked" and info = "insert into t1 values(1)";
|
||||||
connection default;
|
# --source include/wait_condition.inc
|
||||||
--disable_query_log
|
# let $tlwb= `show status like 'Table_locks_waited'`;
|
||||||
eval SET @tlwa= SUBSTRING_INDEX('$tlwa', ' ', -1);
|
# unlock tables;
|
||||||
eval SET @tlwb= SUBSTRING_INDEX('$tlwb', ' ', -1);
|
# drop table t1;
|
||||||
--enable_query_log
|
# disconnect waiter;
|
||||||
select @tlwa < @tlwb;
|
# connection default;
|
||||||
|
# --disable_query_log
|
||||||
|
# eval SET @tlwa= SUBSTRING_INDEX('$tlwa', ' ', -1);
|
||||||
|
# eval SET @tlwb= SUBSTRING_INDEX('$tlwb', ' ', -1);
|
||||||
|
# --enable_query_log
|
||||||
|
# select @tlwa < @tlwb;
|
||||||
|
|
||||||
--echo End of 5.1 tests
|
--echo End of 5.1 tests
|
||||||
|
Reference in New Issue
Block a user