mariadb/mysql-test/suite/tokudb/t/lockretry-insert.writelocktable.test
Rich Prohaska e4c8b835fe refs #6440 move some more mysql tests for tokudb
git-svn-id: file:///svn/mysql/tests/mysql-test@55008 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-02 21:30:09 +00:00

35 lines
No EOL
469 B
Text

--disable_warnings
DROP TABLE IF EXISTS t1;
--enable_warnings
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=TokuDB;
connect (conn1,localhost,root,,);
connection default;
SET AUTOCOMMIT=OFF;
let $i=1000;
while ($i)
{
connection default;
BEGIN;
eval INSERT INTO t1 VALUES ($i);
connection conn1;
send LOCK TABLES t1 WRITE;
connection default;
COMMIT;
connection conn1;
reap;
UNLOCK TABLES;
dec $i;
}
disconnect conn1;
connection default;
DROP TABLE t1;