Commit 3a5e78db authored by Rich Prohaska's avatar Rich Prohaska

#90 fix race conditions in tests that cause sporadic test failures

parent b09f1c49
...@@ -27,6 +27,7 @@ send insert into t values (1); ...@@ -27,6 +27,7 @@ send insert into t values (1);
# should find the presence of a lock on 1st transaction # should find the presence of a lock on 1st transaction
connection default; connection default;
real_sleep 1; # give some time for conn_b to block
replace_column 1 TRX_ID 2 MYSQL_ID; replace_column 1 TRX_ID 2 MYSQL_ID;
select * from information_schema.tokudb_locks; select * from information_schema.tokudb_locks;
......
...@@ -24,6 +24,7 @@ send insert into t values (1); ...@@ -24,6 +24,7 @@ send insert into t values (1);
# should find the presence of a lock on 1st transaction # should find the presence of a lock on 1st transaction
connection default; connection default;
real_sleep 1; # give some time for conn_b to get blocked
replace_column 1 TRX_ID 2 MYSQL_ID; replace_column 1 TRX_ID 2 MYSQL_ID;
select * from information_schema.tokudb_locks; select * from information_schema.tokudb_locks;
......
...@@ -30,6 +30,7 @@ send insert into t values (1); ...@@ -30,6 +30,7 @@ send insert into t values (1);
# should find the presence of a lock on 2nd transaction # should find the presence of a lock on 2nd transaction
connection default; connection default;
real_sleep 1; # give some time for conn_b to get blocked
replace_column 1 TRX_ID 2 MYSQL_ID; replace_column 1 TRX_ID 2 MYSQL_ID;
eval select * from information_schema.tokudb_locks; eval select * from information_schema.tokudb_locks;
......
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