mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
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.
This commit is contained in:
parent
565179812a
commit
094c3d17d9
1 changed files with 4 additions and 1 deletions
|
@ -22,11 +22,14 @@ connection con2;
|
|||
lock tables t1 read;
|
||||
unlock tables;
|
||||
lock tables t1 read;
|
||||
let $ID= `select connection_id()`;
|
||||
connection con1;
|
||||
--send
|
||||
update t1 set n = 3;
|
||||
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;
|
||||
connection con1;
|
||||
reap;
|
||||
|
|
Loading…
Reference in a new issue