Permalink
Browse files

Tokutek/mysql-5.5#23 fix a race condition in the i_s_tokudb_lock_wait…

…s_released test
  • Loading branch information...
1 parent f196f00 commit fb774e7d4f6b7bbbf2404bfe445d733f6c485721 @prohaska prohaska committed Feb 25, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 mysql-test/suite/tokudb/t/i_s_tokudb_lock_waits_released.test
View
4 mysql-test/suite/tokudb/t/i_s_tokudb_lock_waits_released.test
@@ -29,6 +29,7 @@ send insert into t values (1);
connection default;
let $wait_condition= select count(*)=1 from information_schema.processlist where info='insert into t values (1)' and state='update';
source include/wait_condition.inc;
+
replace_column 1 TRX_ID 2 MYSQL_ID;
select * from information_schema.tokudb_locks;
@@ -74,6 +75,9 @@ send replace into t values (1);
# should find the presence of a lock on 1st transaction
connection default;
+let $wait_condition= select count(*)=1 from information_schema.processlist where info='replace into t values (1)' and state='update';
+source include/wait_condition.inc;
+
replace_column 1 TRX_ID 2 MYSQL_ID;
select * from information_schema.tokudb_locks;

0 comments on commit fb774e7

Please sign in to comment.