Commit f3a579ff authored by mmakela's avatar mmakela

branches/5.1: innodb_bug51920.test: Fix a race condition.

parent 14b35d9f
...@@ -17,6 +17,11 @@ connection con1; ...@@ -17,6 +17,11 @@ connection con1;
UPDATE bug51920 SET i=2; UPDATE bug51920 SET i=2;
connection default; connection default;
let $wait_condition =
SELECT COUNT(*)=1 FROM information_schema.processlist
WHERE INFO="UPDATE bug51920 SET i=2";
-- source include/wait_condition.inc
SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST
WHERE INFO="UPDATE bug51920 SET i=2" WHERE INFO="UPDATE bug51920 SET i=2"
INTO @thread_id; INTO @thread_id;
......
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