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

57 lines
2.8 KiB
Text

connection node_2;
connection node_1;
CREATE TABLE t1 (f1 INT PRIMARY KEY);
SET SESSION wsrep_trx_fragment_size=1;
INSERT INTO t1 VALUES (1);
connection node_2;
SELECT COUNT(*) = 1 FROM t1;
COUNT(*) = 1
1
SET SESSION wsrep_trx_fragment_size=1;
UPDATE t1 SET f1 = 2;
connection node_1;
SET SESSION wsrep_trx_fragment_size=0;
connection node_2;
SET SESSION wsrep_trx_fragment_size=0;
connection node_1;
SELECT COUNT(*) = 1 FROM t1 WHERE f1 = 2;
COUNT(*) = 1
1
SHOW BINLOG EVENTS IN 'mysqld-bin.000002' FROM 256;
Log_name Pos Event_type Server_id End_log_pos Info
mysqld-bin.000002 <Pos> Gtid_list 1 <End_log_pos> []
mysqld-bin.000002 <Pos> Binlog_checkpoint 1 <End_log_pos> mysqld-bin.000001
mysqld-bin.000002 <Pos> Binlog_checkpoint 1 <End_log_pos> mysqld-bin.000002
mysqld-bin.000002 <Pos> Gtid 1 <End_log_pos> GTID 0-1-1
mysqld-bin.000002 <Pos> Query 1 <End_log_pos> use `test`; CREATE TABLE t1 (f1 INT PRIMARY KEY)
mysqld-bin.000002 <Pos> Gtid 1 <End_log_pos> BEGIN GTID 0-1-2
mysqld-bin.000002 <Pos> Annotate_rows 1 <End_log_pos> INSERT INTO t1 VALUES (1)
mysqld-bin.000002 <Pos> Table_map 1 <End_log_pos> table_id: ### (test.t1)
mysqld-bin.000002 <Pos> Write_rows_v1 1 <End_log_pos> table_id: ### flags: STMT_END_F
mysqld-bin.000002 <Pos> Xid 1 <End_log_pos> COMMIT /* xid=### */
mysqld-bin.000002 <Pos> Gtid 2 <End_log_pos> BEGIN GTID 0-2-3
mysqld-bin.000002 <Pos> Annotate_rows 2 <End_log_pos> UPDATE t1 SET f1 = 2
mysqld-bin.000002 <Pos> Table_map 2 <End_log_pos> table_id: ### (test.t1)
mysqld-bin.000002 <Pos> Update_rows_v1 2 <End_log_pos> table_id: ### flags: STMT_END_F
mysqld-bin.000002 <Pos> Xid 2 <End_log_pos> COMMIT /* xid=### */
connection node_2;
SELECT 1 FROM DUAL;
1
1
SHOW BINLOG EVENTS IN 'mysqld-bin.000003' FROM 256;
Log_name Pos Event_type Server_id End_log_pos Info
mysqld-bin.000003 <Pos> Gtid_list 2 <End_log_pos> []
mysqld-bin.000003 <Pos> Binlog_checkpoint 2 <End_log_pos> mysqld-bin.000003
mysqld-bin.000003 <Pos> Gtid 1 <End_log_pos> GTID 0-1-1
mysqld-bin.000003 <Pos> Query 1 <End_log_pos> use `test`; CREATE TABLE t1 (f1 INT PRIMARY KEY)
mysqld-bin.000003 <Pos> Gtid 1 <End_log_pos> BEGIN GTID 0-1-2
mysqld-bin.000003 <Pos> Annotate_rows 1 <End_log_pos> INSERT INTO t1 VALUES (1)
mysqld-bin.000003 <Pos> Table_map 1 <End_log_pos> table_id: ### (test.t1)
mysqld-bin.000003 <Pos> Write_rows_v1 1 <End_log_pos> table_id: ### flags: STMT_END_F
mysqld-bin.000003 <Pos> Xid 1 <End_log_pos> COMMIT /* xid=### */
mysqld-bin.000003 <Pos> Gtid 2 <End_log_pos> BEGIN GTID 0-2-3
mysqld-bin.000003 <Pos> Annotate_rows 2 <End_log_pos> UPDATE t1 SET f1 = 2
mysqld-bin.000003 <Pos> Table_map 2 <End_log_pos> table_id: ### (test.t1)
mysqld-bin.000003 <Pos> Update_rows_v1 2 <End_log_pos> table_id: ### flags: STMT_END_F
mysqld-bin.000003 <Pos> Xid 2 <End_log_pos> COMMIT /* xid=### */
DROP TABLE t1;