summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorRich Prohaska <prohaska@tokutek.com>2014-02-25 17:03:10 -0500
committerRich Prohaska <prohaska@tokutek.com>2014-02-25 17:03:10 -0500
commit5243883431a4b91b38eabfc4f3c1f88fad3dc7d2 (patch)
treeaa69664e1959dd7836afc98ddf25c612863da6b4 /mysql-test
parente9b9fd90775102a7e1a1c3bcfbacbe4f208f55ab (diff)
downloadmariadb-git-5243883431a4b91b38eabfc4f3c1f88fad3dc7d2.tar.gz
Tokutek/mysql#23 fix a race condition in the i_s_tokudb_lock_waits_released test
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/suite/tokudb/t/i_s_tokudb_lock_waits_released.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/suite/tokudb/t/i_s_tokudb_lock_waits_released.test b/mysql-test/suite/tokudb/t/i_s_tokudb_lock_waits_released.test
index 50e17b1af7a..ff0a3b23278 100644
--- a/mysql-test/suite/tokudb/t/i_s_tokudb_lock_waits_released.test
+++ b/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;