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; ...@@ -347,7 +347,6 @@ drop table t1;
# #
create table t1 (a int not null primary key, b int); create table t1 (a int not null primary key, b int);
insert delayed into t1 values (1,rownum()),(2,rownum()),(3,rownum()); insert delayed into t1 values (1,rownum()),(2,rownum()),(3,rownum());
flush tables;
select * from t1; select * from t1;
a b a b
1 1 1 1
......
...@@ -190,7 +190,8 @@ drop table t1; ...@@ -190,7 +190,8 @@ drop table t1;
create table t1 (a int not null primary key, b int); create table t1 (a int not null primary key, b int);
insert delayed into t1 values (1,rownum()),(2,rownum()),(3,rownum()); 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; select * from t1;
drop table 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