mariadb/mysql-test/suite/galera/t/rpl_row_annotate.test
2015-07-14 16:05:29 -04:00

42 lines
1.1 KiB
Text

--source include/galera_cluster.inc
--source include/have_innodb.inc
--echo # On node_2
--connection node_2
RESET MASTER;
--echo # On node_1
--connection node_1
RESET MASTER;
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;
--source include/galera_end.inc
--echo # End of test