blob: be631d1d916506b1b10e6671ea1e3cda362d55e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
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;
|