Commit 094c3d17 authored by unknown's avatar unknown

Bug #29307 status.test fails with different Table_locks_immediate

Instead of sleeping for a fixed period of time, we wait until the other query is executing.

parent 56517981
...@@ -22,11 +22,14 @@ connection con2; ...@@ -22,11 +22,14 @@ connection con2;
lock tables t1 read; lock tables t1 read;
unlock tables; unlock tables;
lock tables t1 read; lock tables t1 read;
let $ID= `select connection_id()`;
connection con1; connection con1;
--send --send
update t1 set n = 3; update t1 set n = 3;
connection con2; connection con2;
sleep 0.5; # wait for the other query to start executing
let $wait_condition= select 1 from INFORMATION_SCHEMA.PROCESSLIST where ID = $ID and STATE = 0;
--source include/wait_condition.inc
unlock tables; unlock tables;
connection con1; connection con1;
reap; reap;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment