rpl_log_pos.test 1015 Bytes
Newer Older
1 2 3 4 5 6
##########
# Change Author: JBM
# Change Date: 2006-01-16
# Change: Added Order by for NDB
##########

7 8 9
#
# Testing of setting slave to wrong log position with master_log_pos
#
10 11 12

# Passes with rbr no problem, removed statement include [jbm]

13
source include/master-slave.inc;
unknown's avatar
unknown committed
14
source include/show_master_status.inc;
15
sync_slave_with_master;
16
source include/stop_slave.inc;
17

18
change master to master_log_pos=75;
unknown's avatar
unknown committed
19
source include/show_slave_status2.inc;
20
start slave;
21 22 23
source include/wait_for_slave_sql_to_start.inc;
source include/wait_for_slave_io_to_stop.inc;
source include/stop_slave.inc;
24

25
source include/show_slave_status.inc;
26
connection master;
unknown's avatar
unknown committed
27
source include/show_master_status.inc;
28 29 30 31
create table if not exists t1 (n int);
drop table if exists t1;
create table t1 (n int);
insert into t1 values (1),(2),(3);
unknown's avatar
unknown committed
32
save_master_pos;
33
connection slave;
unknown's avatar
unknown committed
34
change master to master_log_pos=4;
35
start slave;
unknown's avatar
unknown committed
36
sync_with_master;
37
select * from t1 ORDER BY n;
38
connection master;
39
drop table t1;
40
sync_slave_with_master;
41

42
--echo End of 5.0 tests