mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
5e2639830e
Documented/cleaned up log event code Updated tests mysql-test/r/rpl000014.result: new binlog format mysql-test/r/rpl000015.result: new binlog format mysql-test/r/rpl000016.result: new binlog format mysql-test/std_data/master-bin.001: new binlog format mysql-test/t/rpl000014.test: new binlog format sql/log.cc: new binlog format sql/log_event.cc: new binlog format sql/log_event.h: new binlog format sql/sql_class.cc: new binlog format sql/sql_class.h: new binlog format sql/sql_repl.cc: new binlog format
35 lines
885 B
Text
35 lines
885 B
Text
source include/master-slave.inc;
|
|
connection master;
|
|
show master status;
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|
|
--replace_result 9306 9999 3334 9999 3335 9999
|
|
show slave status;
|
|
change master to master_log_pos=73;
|
|
slave stop;
|
|
change master to master_log_pos=73;
|
|
--replace_result 9306 9999 3334 9999 3335 9999
|
|
show slave status;
|
|
slave start;
|
|
--replace_result 9306 9999 3334 9999 3335 9999
|
|
show slave status;
|
|
change master to master_log_pos=173;
|
|
--replace_result 9306 9999 3334 9999 3335 9999
|
|
show slave status;
|
|
connection master;
|
|
show master status;
|
|
create table if not exists foo(n int);
|
|
drop table if exists foo;
|
|
create table foo (n int);
|
|
insert into foo values (1),(2),(3);
|
|
save_master_pos;
|
|
connection slave;
|
|
change master to master_log_pos=79;
|
|
sync_with_master;
|
|
select * from foo;
|
|
connection master;
|
|
drop table foo;
|
|
save_master_pos;
|
|
connection slave;
|
|
sync_with_master;
|