2006-01-18 00:45:23 +01:00
|
|
|
##########
|
|
|
|
# Change Author: JBM
|
|
|
|
# Change Date: 2006-01-16
|
|
|
|
# Change: Added Order by for NDB
|
|
|
|
##########
|
|
|
|
|
2002-08-21 21:04:22 +02:00
|
|
|
#
|
|
|
|
# Testing of setting slave to wrong log position with master_log_pos
|
|
|
|
#
|
2005-12-22 06:39:02 +01:00
|
|
|
|
|
|
|
# Passes with rbr no problem, removed statement include [jbm]
|
|
|
|
|
2000-12-12 23:01:35 +01:00
|
|
|
source include/master-slave.inc;
|
2005-12-22 06:39:02 +01:00
|
|
|
--replace_column 3 <Binlog_Ignore_DB>
|
2000-12-12 23:01:35 +01:00
|
|
|
show master status;
|
2002-10-25 01:46:14 +02:00
|
|
|
sync_slave_with_master;
|
2004-05-10 12:15:40 +02:00
|
|
|
--replace_result $MASTER_MYPORT MASTER_PORT
|
2003-12-19 22:40:23 +01:00
|
|
|
--replace_column 1 # 8 # 9 # 23 # 33 #
|
2000-12-12 23:01:35 +01:00
|
|
|
show slave status;
|
2003-01-04 14:37:20 +01:00
|
|
|
stop slave;
|
2005-12-22 06:39:02 +01:00
|
|
|
change master to master_log_pos=74;
|
2003-01-04 14:37:20 +01:00
|
|
|
start slave;
|
2002-08-24 04:44:16 +02:00
|
|
|
sleep 5;
|
2002-10-25 01:46:14 +02:00
|
|
|
stop slave;
|
2002-03-16 02:44:44 +01:00
|
|
|
|
2005-12-22 06:39:02 +01:00
|
|
|
change master to master_log_pos=74;
|
2004-05-10 12:15:40 +02:00
|
|
|
--replace_result $MASTER_MYPORT MASTER_PORT
|
2003-12-19 22:40:23 +01:00
|
|
|
--replace_column 1 # 8 # 9 # 23 # 33 #
|
2000-12-12 23:01:35 +01:00
|
|
|
show slave status;
|
2002-10-25 01:46:14 +02:00
|
|
|
start slave;
|
2002-08-24 04:44:16 +02:00
|
|
|
sleep 5;
|
2004-05-10 12:15:40 +02:00
|
|
|
--replace_result $MASTER_MYPORT MASTER_PORT
|
2003-12-19 22:40:23 +01:00
|
|
|
--replace_column 1 # 8 # 9 # 23 # 33 #
|
2000-12-12 23:01:35 +01:00
|
|
|
show slave status;
|
2003-01-04 14:37:20 +01:00
|
|
|
stop slave;
|
2005-12-22 06:39:02 +01:00
|
|
|
change master to master_log_pos=177;
|
2002-10-25 01:46:14 +02:00
|
|
|
start slave;
|
2002-08-21 21:04:22 +02:00
|
|
|
sleep 2;
|
2004-05-10 12:15:40 +02:00
|
|
|
--replace_result $MASTER_MYPORT MASTER_PORT
|
2003-12-19 22:40:23 +01:00
|
|
|
--replace_column 1 # 8 # 9 # 23 # 33 #
|
2000-12-12 23:01:35 +01:00
|
|
|
show slave status;
|
|
|
|
connection master;
|
2005-12-22 06:39:02 +01:00
|
|
|
--replace_column 3 <Binlog_Ignore_DB>
|
2000-12-12 23:01:35 +01:00
|
|
|
show master status;
|
2002-08-21 21:04:22 +02:00
|
|
|
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);
|
2001-01-17 13:47:33 +01:00
|
|
|
save_master_pos;
|
2000-12-12 23:01:35 +01:00
|
|
|
connection slave;
|
2003-01-04 14:37:20 +01:00
|
|
|
stop slave;
|
2005-12-22 06:39:02 +01:00
|
|
|
change master to master_log_pos=102;
|
2002-10-25 01:46:14 +02:00
|
|
|
start slave;
|
2001-01-17 13:47:33 +01:00
|
|
|
sync_with_master;
|
2006-01-18 00:45:23 +01:00
|
|
|
select * from t1 ORDER BY n;
|
2001-01-03 01:15:48 +01:00
|
|
|
connection master;
|
2002-08-21 21:04:22 +02:00
|
|
|
drop table t1;
|
2002-10-25 01:46:14 +02:00
|
|
|
sync_slave_with_master;
|
2005-07-28 02:22:47 +02:00
|
|
|
|
|
|
|
# End of 4.1 tests
|