diff options
-rw-r--r-- | mysql-test/r/lock_multi.result | 10 | ||||
-rw-r--r-- | mysql-test/t/lock_multi.test | 60 |
2 files changed, 32 insertions, 38 deletions
diff --git a/mysql-test/r/lock_multi.result b/mysql-test/r/lock_multi.result index cd05fc1473f..9c4f1b17dcc 100644 --- a/mysql-test/r/lock_multi.result +++ b/mysql-test/r/lock_multi.result @@ -143,14 +143,4 @@ connection: default flush tables; unlock tables; 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 diff --git a/mysql-test/t/lock_multi.test b/mysql-test/t/lock_multi.test index f1e9c0d253f..a7965e429ef 100644 --- a/mysql-test/t/lock_multi.test +++ b/mysql-test/t/lock_multi.test @@ -440,34 +440,38 @@ disconnect flush; drop table t1; # -# Bug#30331: Table_locks_waited shows inaccurate values # - ---disable_warnings -drop table if exists t1,t2; ---enable_warnings - -create table t1 (a int); -flush status; -lock tables t1 read; -let $tlwa= `show status like 'Table_locks_waited'`; -connect (waiter,localhost,root,,); -connection waiter; ---send insert into t1 values(1); -connection default; -let $wait_condition= - select count(*) = 1 from information_schema.processlist - where state = "Locked" and info = "insert into t1 values(1)"; ---source include/wait_condition.inc -let $tlwb= `show status like 'Table_locks_waited'`; -unlock tables; -drop table t1; -disconnect waiter; -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; +# This test case was disabled due to Bug#34311: main.lock_multy.test fails. +# +# # +# # Bug#30331: Table_locks_waited shows inaccurate values +# # +# +# --disable_warnings +# drop table if exists t1,t2; +# --enable_warnings +# +# create table t1 (a int); +# flush status; +# lock tables t1 read; +# let $tlwa= `show status like 'Table_locks_waited'`; +# connect (waiter,localhost,root,,); +# connection waiter; +# --send insert into t1 values(1); +# connection default; +# let $wait_condition= +# select count(*) = 1 from information_schema.processlist +# where state = "Locked" and info = "insert into t1 values(1)"; +# --source include/wait_condition.inc +# let $tlwb= `show status like 'Table_locks_waited'`; +# unlock tables; +# drop table t1; +# disconnect waiter; +# 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 |