summaryrefslogtreecommitdiff
path: root/mysql-test/suite/galera/t/rpl_row_annotate.test
blob: 0ec308299825ac6d264d8a897ecc0acbf8e3a55a (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
--source include/galera_cluster.inc
--source include/have_innodb.inc

--echo # On node_2
--connection node_2
SET GLOBAL wsrep_on=OFF;
RESET MASTER;
SET GLOBAL wsrep_on=ON;

--echo # On node_1
--connection node_1
SET GLOBAL wsrep_on=OFF;
RESET MASTER;
SET GLOBAL wsrep_on=ON;
CREATE TABLE t1(i INT)ENGINE=INNODB;
INSERT INTO t1 VALUES(1);
DELETE FROM t1 WHERE i = 1;

--echo # On node_2
--connection node_2
INSERT INTO t1 VALUES(2);
DELETE FROM t1 WHERE i = 2;

--echo # On node_1
--connection node_1
--source include/binlog_start_pos.inc
let $start_pos= `select @binlog_start_pos`;
--replace_column 2 # 5 #
--replace_result $start_pos <start_pos>
--replace_regex /table_id: [0-9]+/table_id: #/ /\/\* xid=.* \*\//\/* xid= *\//
--eval SHOW BINLOG EVENTS IN 'mysqld-bin.000001' FROM $start_pos

--echo # On node_2
--connection node_2
--source include/binlog_start_pos.inc
let $start_pos= `select @binlog_start_pos`;
--replace_column 2 # 5 #
--replace_result $start_pos <start_pos>
--replace_regex /table_id: [0-9]+/table_id: #/ /\/\* xid=.* \*\//\/* xid= *\//
--eval SHOW BINLOG EVENTS IN 'mysqld-bin.000001' FROM $start_pos

# Cleanup
DROP TABLE t1;

--echo # End of test