mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
added SHOW BINLOG EVENTS
fixed log sequence bugs fixed bugs in handling Slave event added test case with SHOW BINLOG EVENTS have not fixed all the bugs - found some that are also in 3.23, will fix them there first, then do pull and cleanup will not push this changeset
This commit is contained in:
27
mysql-test/t/rpl_log.test
Normal file
27
mysql-test/t/rpl_log.test
Normal file
@ -0,0 +1,27 @@
|
||||
source include/master-slave.inc;
|
||||
|
||||
#clean up slave binlogs
|
||||
connection slave;
|
||||
reset master;
|
||||
|
||||
connection master;
|
||||
drop table if exists t1;
|
||||
create table t1(n int not null auto_increment primary key);
|
||||
insert into t1 values (NULL);
|
||||
drop table t1;
|
||||
create table t1 (word char(20) not null);
|
||||
load data infile '../../std_data/words.dat' into table t1;
|
||||
drop table t1;
|
||||
show binlog events;
|
||||
show binlog events from 79 limit 1;
|
||||
show binlog events from 79 limit 2;
|
||||
show binlog events from 79 limit 2,1;
|
||||
flush logs;
|
||||
show binlog events;
|
||||
show binlog events in 'master-bin.002';
|
||||
save_master_pos;
|
||||
connection slave;
|
||||
sync_with_master;
|
||||
show master logs;
|
||||
show binlog events in 'slave-bin.001' from 4;
|
||||
show binlog events in 'slave-bin.002' from 4;
|
Reference in New Issue
Block a user