mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
37 lines
895 B
Text
37 lines
895 B
Text
connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2;
|
|
connection node_2;
|
|
START SLAVE;
|
|
connection node_1;
|
|
CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
|
|
CREATE TABLE t2 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
|
|
INSERT INTO t1 VALUES(1);
|
|
begin;
|
|
insert into t2 values(21);
|
|
insert into t2 values(22);
|
|
commit;
|
|
SELECT @@global.gtid_binlog_state;
|
|
@@global.gtid_binlog_state
|
|
1-1-4
|
|
connection node_2;
|
|
INSERT INTO t1 VALUES(2);
|
|
INSERT INTO t1 VALUES(3);
|
|
SELECT @@global.gtid_binlog_state;
|
|
@@global.gtid_binlog_state
|
|
1-1-4,2-2-2
|
|
connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3;
|
|
INSERT INTO t1 VALUES(4);
|
|
SELECT @@global.gtid_binlog_state;
|
|
@@global.gtid_binlog_state
|
|
1-1-4,2-2-2,2-3-3
|
|
connection node_1;
|
|
DROP TABLE t1,t2;
|
|
connection node_2;
|
|
connection node_3;
|
|
connection node_2;
|
|
STOP SLAVE;
|
|
RESET SLAVE ALL;
|
|
reset master;
|
|
connection node_3;
|
|
reset master;
|
|
connection node_1;
|
|
reset master;
|