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 22:04:22 +03: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 15:01:35 -07:00
|
|
|
source include/master-slave.inc;
|
2008-01-14 15:38:02 +08:00
|
|
|
source include/show_master_status.inc;
|
2002-10-24 17:46:14 -06:00
|
|
|
sync_slave_with_master;
|
2008-07-10 18:09:39 +02:00
|
|
|
source include/stop_slave.inc;
|
2002-03-15 18:44:44 -07:00
|
|
|
|
2007-03-29 20:31:09 +02:00
|
|
|
change master to master_log_pos=75;
|
2008-01-14 15:38:02 +08:00
|
|
|
source include/show_slave_status2.inc;
|
2002-10-24 17:46:14 -06:00
|
|
|
start slave;
|
2008-07-10 18:09:39 +02:00
|
|
|
source include/wait_for_slave_sql_to_start.inc;
|
|
|
|
source include/wait_for_slave_io_to_stop.inc;
|
|
|
|
source include/stop_slave.inc;
|
2007-06-15 16:09:28 +05:00
|
|
|
|
2007-06-11 22:15:39 +02:00
|
|
|
source include/show_slave_status.inc;
|
2000-12-12 15:01:35 -07:00
|
|
|
connection master;
|
2008-01-14 15:38:02 +08:00
|
|
|
source include/show_master_status.inc;
|
2002-08-21 22:04:22 +03: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 05:47:33 -07:00
|
|
|
save_master_pos;
|
2000-12-12 15:01:35 -07:00
|
|
|
connection slave;
|
2008-01-14 15:38:02 +08:00
|
|
|
change master to master_log_pos=4;
|
2002-10-24 17:46:14 -06:00
|
|
|
start slave;
|
2001-01-17 05:47:33 -07:00
|
|
|
sync_with_master;
|
2006-01-18 00:45:23 +01:00
|
|
|
select * from t1 ORDER BY n;
|
2001-01-03 02:15:48 +02:00
|
|
|
connection master;
|
2002-08-21 22:04:22 +03:00
|
|
|
drop table t1;
|
2002-10-24 17:46:14 -06:00
|
|
|
sync_slave_with_master;
|
2005-07-28 03:22:47 +03:00
|
|
|
|
2007-06-15 16:09:28 +05:00
|
|
|
--echo End of 5.0 tests
|