source include/have_tokudb.inc;
source include/master-slave.inc;
source include/have_binlog_format_row.inc;

CREATE TABLE testr (pk int(11) NOT NULL AUTO_INCREMENT, num int(11) DEFAULT NULL, txt varchar(32) DEFAULT NULL, PRIMARY KEY (pk)) ENGINE=TOKUDB;
INSERT INTO testr VALUES (1,1,'one'),(2,2,'two'),(3,3,'three'),(4,4,'four');
replace into testr values (2,2,'twotwo');
select * from testr;

save_master_pos;
connection slave;
sync_with_master;
select * from testr;

connection master;

drop table testr;

source include/rpl_end.inc;
