include/master-slave.inc [connection master] CREATE TABLE t1 (c1 CHAR(15), c2 CHAR(15), c3 INT, PRIMARY KEY (c3)) ENGINE = NDB ; reset master; SHOW TABLES; Tables_in_test t1 INSERT INTO t1 VALUES ("row1","will go away",1); SELECT * FROM t1 ORDER BY c3; c1 c2 c3 row1 will go away 1 SELECT * FROM t1 ORDER BY c3; c1 c2 c3 row1 will go away 1 SELECT @the_epoch:=MAX(epoch) FROM mysql.ndb_apply_status; @the_epoch:=MAX(epoch) SELECT * FROM t1 ORDER BY c3; c1 c2 c3 row1 will go away 1 stop slave; SELECT @the_pos:=Position,@the_file:=SUBSTRING_INDEX(FILE, '/', -1) FROM mysql.ndb_binlog_index WHERE epoch = ; @the_pos:=Position @the_file:=SUBSTRING_INDEX(FILE, '/', -1) 106 master-bin.000001 include/rpl_change_topology.inc [new topology=3->2] include/start_slave.inc INSERT INTO t1 VALUES ("row2","will go away",2),("row3","will change",3),("row4","D",4); DELETE FROM t1 WHERE c3 = 1; UPDATE t1 SET c2="should go away" WHERE c3 = 2; UPDATE t1 SET c2="C" WHERE c3 = 3; DELETE FROM t1 WHERE c3 = 2; SELECT * FROM t1 ORDER BY c3; c1 c2 c3 row3 C 3 row4 D 4 INSERT INTO t1 VALUES ("row5","E",5); SELECT * FROM t1 ORDER BY c3; c1 c2 c3 row3 C 3 row4 D 4 row5 E 5 SELECT * FROM t1 ORDER BY c3; c1 c2 c3 row3 C 3 row4 D 4 row5 E 5 ==== clean up ==== DROP TABLE t1; include/rpl_end.inc