mariadb/mysql-test/suite/galera_sr/r/GCF-585.result
Brave Galera Crew 36a2a185fe Galera4
2019-01-23 15:30:00 +04:00

28 lines
1 KiB
Text

connection node_2;
connection node_1;
create table t1 (f1 integer primary key) engine=innodb;
set autocommit=off;
set session wsrep_trx_fragment_size=1;
start transaction;
insert into t1 values (1);
insert into t1 values (2),(1);
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
alter table t1 drop primary key;
drop table t1;
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
INSERT INTO t1 VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
SET SESSION wsrep_trx_fragment_size=1;
SET AUTOCOMMIT=OFF;
START TRANSACTION;
update t1 set f1 = 100 where f1 = 10;
connection node_2;
INSERT INTO t1 VALUES (11),(12),(13),(14),(15),(16),(17),(18),(19),(20);
SET SESSION wsrep_trx_fragment_size=1;
SET SESSION innodb_lock_wait_timeout=1;
SET AUTOCOMMIT=OFF;
START TRANSACTION;
delete from t1 where f1 > 10;
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
delete from t1 where f1 > 10 and f1 < 100;
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
DROP TABLE t1;