mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Revert "MDEV-35019 Provide a way to enable "rollback XA on disconnect" behavior we had before 10.5.2"
This reverts commit 8ae462a220
.
This commit is contained in:
@@ -280,28 +280,4 @@ disconnect con1;
|
||||
connection master;
|
||||
xa commit '1';
|
||||
drop table t2, t1;
|
||||
# MDEV-35019 Provide a way to enable "rollback XA on disconnect" behavior we had before 10.5.2
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;
|
||||
INSERT INTO t1 VALUES (1), (3);
|
||||
connect con1, localhost,root;
|
||||
SET SESSION legacy_xa_rollback_at_disconnect= 1;
|
||||
XA START '3';
|
||||
INSERT INTO t1 VALUES (2);
|
||||
XA END '3';
|
||||
XA PREPARE '3';
|
||||
disconnect con1;
|
||||
connection master;
|
||||
include/save_master_gtid.inc
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a
|
||||
1
|
||||
3
|
||||
connection slave;
|
||||
include/sync_with_master_gtid.inc
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a
|
||||
1
|
||||
3
|
||||
connection master;
|
||||
DROP TABLE t1;
|
||||
include/rpl_end.inc
|
||||
|
@@ -289,30 +289,6 @@ disconnect con1;
|
||||
connection master;
|
||||
xa commit '1';
|
||||
drop table t2, t1;
|
||||
# MDEV-35019 Provide a way to enable "rollback XA on disconnect" behavior we had before 10.5.2
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;
|
||||
INSERT INTO t1 VALUES (1), (3);
|
||||
connect con1, localhost,root;
|
||||
SET SESSION legacy_xa_rollback_at_disconnect= 1;
|
||||
XA START '3';
|
||||
INSERT INTO t1 VALUES (2);
|
||||
XA END '3';
|
||||
XA PREPARE '3';
|
||||
disconnect con1;
|
||||
connection master;
|
||||
include/save_master_gtid.inc
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a
|
||||
1
|
||||
3
|
||||
connection slave;
|
||||
include/sync_with_master_gtid.inc
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a
|
||||
1
|
||||
3
|
||||
connection master;
|
||||
DROP TABLE t1;
|
||||
connection slave;
|
||||
include/stop_slave.inc
|
||||
SET @@global.gtid_pos_auto_engines="";
|
||||
|
@@ -434,26 +434,3 @@ disconnect con1;
|
||||
connection master;
|
||||
xa commit '1';
|
||||
drop table t2, t1;
|
||||
|
||||
--echo # MDEV-35019 Provide a way to enable "rollback XA on disconnect" behavior we had before 10.5.2
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;
|
||||
INSERT INTO t1 VALUES (1), (3);
|
||||
|
||||
connect con1, localhost,root;
|
||||
SET SESSION legacy_xa_rollback_at_disconnect= 1;
|
||||
XA START '3';
|
||||
INSERT INTO t1 VALUES (2);
|
||||
XA END '3';
|
||||
XA PREPARE '3';
|
||||
--disconnect con1
|
||||
|
||||
--connection master
|
||||
--source include/save_master_gtid.inc
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
|
||||
--connection slave
|
||||
--source include/sync_with_master_gtid.inc
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
|
||||
--connection master
|
||||
DROP TABLE t1;
|
||||
|
Reference in New Issue
Block a user