mirror of
https://github.com/MariaDB/server.git
synced 2025-05-17 19:29:54 +02:00
28 lines
816 B
Text
28 lines
816 B
Text
set default_storage_engine=tokudb;
|
|
drop table if exists t;
|
|
create table t (id int not null primary key, c int not null) engine=tokudb;
|
|
insert into t values (1,0);
|
|
connect conn1,localhost,root,,;
|
|
connection default;
|
|
begin;
|
|
update t set c=10 where id=1;
|
|
connection conn1;
|
|
update t set c=100;
|
|
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
|
|
connection default;
|
|
rollback;
|
|
disconnect conn1;
|
|
drop table t;
|
|
create table t (id int not null primary key, c int not null) engine=tokudb partition by hash(id) partitions 1;
|
|
insert into t values (1,0);
|
|
connect conn1,localhost,root,,;
|
|
connection default;
|
|
begin;
|
|
update t set c=10 where id=1;
|
|
connection conn1;
|
|
update t set c=100;
|
|
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
|
|
connection default;
|
|
rollback;
|
|
disconnect conn1;
|
|
drop table t;
|