mirror of
https://github.com/MariaDB/server.git
synced 2025-09-13 13:47:59 +03:00
24 lines
759 B
Plaintext
24 lines
759 B
Plaintext
connection node_2;
|
|
connection node_1;
|
|
connection node_1;
|
|
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY, f2 INTEGER) ENGINE=InnoDB;
|
|
SET SESSION wsrep_trx_fragment_size = 1;
|
|
SET AUTOCOMMIT=OFF;
|
|
START TRANSACTION;
|
|
INSERT INTO t1 VALUES (1, 1);
|
|
INSERT INTO t1 VALUES (2, 2);
|
|
INSERT INTO t1 VALUES (3, 3);
|
|
INSERT INTO t1 VALUES (4, 4);
|
|
INSERT INTO t1 VALUES (5, 5);
|
|
connection node_2;
|
|
SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
|
|
DROP SCHEMA test;
|
|
SELECT COUNT(*) = 0 FROM test.t1;
|
|
ERROR 42S02: Table 'test.t1' doesn't exist
|
|
connection node_1;
|
|
INSERT INTO test.t1 VALUES (6, 6);
|
|
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
|
|
INSERT INTO test.t1 VALUES (6, 6);
|
|
ERROR 42S02: Table 'test.t1' doesn't exist
|
|
CREATE SCHEMA test;
|