Commit 16d8763b authored by Sergei Golubchik's avatar Sergei Golubchik

fix a race condition in the main.rownum test

parent c3b50038
......@@ -347,7 +347,6 @@ drop table t1;
#
create table t1 (a int not null primary key, b int);
insert delayed into t1 values (1,rownum()),(2,rownum()),(3,rownum());
flush tables;
select * from t1;
a b
1 1
......
......@@ -190,7 +190,8 @@ drop table t1;
create table t1 (a int not null primary key, b int);
insert delayed into t1 values (1,rownum()),(2,rownum()),(3,rownum());
flush tables;
let $wait_condition= SELECT COUNT(*)=3 FROM t1;
source include/wait_condition.inc;
select * from t1;
drop table t1;
......
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