mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 06:22:28 +01:00
#4621 move tokudb.lockretry mysql tests to common mysql test dir refs[t:4621]
git-svn-id: file:///svn/mysql/tests/mysql-test@40914 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
e08d06875c
commit
a176ec2f18
6 changed files with 12108 additions and 0 deletions
5004
mysql-test/suite/tokudb.lockretry/r/insert.writelocktable.result
Normal file
5004
mysql-test/suite/tokudb.lockretry/r/insert.writelocktable.result
Normal file
File diff suppressed because it is too large
Load diff
3003
mysql-test/suite/tokudb.lockretry/r/writelocktable.insert.result
Normal file
3003
mysql-test/suite/tokudb.lockretry/r/writelocktable.insert.result
Normal file
File diff suppressed because it is too large
Load diff
4003
mysql-test/suite/tokudb.lockretry/r/writelocktable.insert2.result
Normal file
4003
mysql-test/suite/tokudb.lockretry/r/writelocktable.insert2.result
Normal file
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,35 @@
|
|||
--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;
|
|
@ -0,0 +1,31 @@
|
|||
--disable_warnings
|
||||
DROP TABLE IF EXISTS t1;
|
||||
--enable_warnings
|
||||
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=TOKUDB;
|
||||
|
||||
connect (conn1,localhost,root,,);
|
||||
|
||||
let $i=1000;
|
||||
while ($i)
|
||||
{
|
||||
connection default;
|
||||
LOCK TABLES t1 WRITE;
|
||||
|
||||
connection conn1;
|
||||
send;
|
||||
eval INSERT INTO t1 VALUES ($i);
|
||||
|
||||
connection default;
|
||||
UNLOCK TABLES;
|
||||
|
||||
connection conn1;
|
||||
reap;
|
||||
|
||||
dec $i;
|
||||
}
|
||||
|
||||
disconnect conn1;
|
||||
|
||||
connection default;
|
||||
DROP TABLE t1;
|
|
@ -0,0 +1,32 @@
|
|||
--disable_warnings
|
||||
DROP TABLE IF EXISTS t1;
|
||||
--enable_warnings
|
||||
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=TOKUDB;
|
||||
|
||||
connect (conn1,localhost,root,,);
|
||||
|
||||
let $i=1000;
|
||||
while ($i)
|
||||
{
|
||||
connection default;
|
||||
LOCK TABLES t1 WRITE;
|
||||
eval INSERT INTO t1 VALUES (-$i);
|
||||
|
||||
connection conn1;
|
||||
send;
|
||||
eval INSERT INTO t1 VALUES ($i);
|
||||
|
||||
connection default;
|
||||
UNLOCK TABLES;
|
||||
|
||||
connection conn1;
|
||||
reap;
|
||||
|
||||
dec $i;
|
||||
}
|
||||
|
||||
disconnect conn1;
|
||||
|
||||
connection default;
|
||||
DROP TABLE t1;
|
Loading…
Reference in a new issue