mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 15:24:16 +01:00
5a3e3f2449
git-svn-id: file:///svn/mysql/tests/mysql-test@24930 c7de825b-a66e-492c-adef-691d508d4ae1
67 lines
2.3 KiB
Text
Executable file
67 lines
2.3 KiB
Text
Executable file
SET STORAGE_ENGINE = 'tokudb';
|
|
# Establish connection conn1 (user = root)
|
|
DROP TABLE IF EXISTS foo;
|
|
set session transaction isolation level read uncommitted;
|
|
set session tokudb_prelock_empty=1;
|
|
set session tokudb_load_save_space=0;
|
|
create table foo (a int, b int, c int, key (a)) engine=TokuDB;
|
|
show create table foo;
|
|
Table Create Table
|
|
foo CREATE TABLE `foo` (
|
|
`a` int(11) DEFAULT NULL,
|
|
`b` int(11) DEFAULT NULL,
|
|
`c` int(11) DEFAULT NULL,
|
|
KEY `a` (`a`)
|
|
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
|
begin;
|
|
insert into foo values (1,10,100),(2,20,200),(3,30,300);
|
|
set session transaction isolation level read uncommitted;
|
|
insert into foo values (100,100,100);
|
|
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
|
|
alter table foo drop index a;
|
|
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
|
|
truncate table foo;
|
|
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
|
|
commit;
|
|
drop table foo;
|
|
set session tokudb_prelock_empty=1;
|
|
set session tokudb_load_save_space=1;
|
|
create table foo (a int, b int, c int, key (a)) engine=TokuDB;
|
|
show create table foo;
|
|
Table Create Table
|
|
foo CREATE TABLE `foo` (
|
|
`a` int(11) DEFAULT NULL,
|
|
`b` int(11) DEFAULT NULL,
|
|
`c` int(11) DEFAULT NULL,
|
|
KEY `a` (`a`)
|
|
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
|
begin;
|
|
insert into foo values (1,10,100),(2,20,200),(3,30,300);
|
|
insert into foo values (100,100,100);
|
|
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
|
|
alter table foo drop index a;
|
|
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
|
|
truncate table foo;
|
|
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
|
|
commit;
|
|
drop table foo;
|
|
set session tokudb_prelock_empty=0;
|
|
set session tokudb_load_save_space=0;
|
|
create table foo (a int, b int, c int, key (a)) engine=TokuDB;
|
|
show create table foo;
|
|
Table Create Table
|
|
foo CREATE TABLE `foo` (
|
|
`a` int(11) DEFAULT NULL,
|
|
`b` int(11) DEFAULT NULL,
|
|
`c` int(11) DEFAULT NULL,
|
|
KEY `a` (`a`)
|
|
) ENGINE=TOKUDB DEFAULT CHARSET=latin1
|
|
begin;
|
|
insert into foo values (1,10,100),(2,20,200),(3,30,300);
|
|
insert into foo values (100,100,100);
|
|
alter table foo drop index a;
|
|
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
|
|
truncate table foo;
|
|
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
|
|
set session transaction isolation level serializable;
|
|
DROP TABLE foo;
|