mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
bdcecfa22c
When binlog is disabled, WSREP will not behave correctly when SAVEPOINT ROLLBACK is executed and we will not rollback transaction.
18 lines
388 B
Text
18 lines
388 B
Text
connection node_2;
|
|
connection node_1;
|
|
connection node_1;
|
|
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
|
|
SET AUTOCOMMIT=OFF;
|
|
SET SESSION wsrep_trx_fragment_size = 200;
|
|
START TRANSACTION;
|
|
INSERT INTO t1 VALUES (1);
|
|
INSERT INTO t1 VALUES (1);
|
|
SAVEPOINT A;
|
|
INSERT INTO t1 VALUES (1);
|
|
ROLLBACK TO SAVEPOINT A;
|
|
COMMIT;
|
|
connection node_2;
|
|
SELECT COUNT(*) = 2 FROM t1;
|
|
COUNT(*) = 2
|
|
1
|
|
DROP TABLE t1;
|