mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-25 18:38:00 +03:00 
			
		
		
		
	into neptunus.(none):/home/msvensson/mysql/bug11316/my50-bug11316 mysql-test/mysql-test-run.pl: Auto merged mysql-test/mysql-test-run.sh: Auto merged mysql-test/r/mysqltest.result: Auto merged mysql-test/r/type_newdecimal.result: Auto merged mysql-test/t/create.test: Auto merged mysql-test/t/create_select_tmp.test: Auto merged mysql-test/t/drop.test: Auto merged mysql-test/t/flush.test: Auto merged mysql-test/t/handler.test: Auto merged mysql-test/t/innodb-deadlock.test: Auto merged mysql-test/t/innodb-lock.test: Auto merged mysql-test/t/innodb.test: Auto merged mysql-test/t/kill.test: Auto merged mysql-test/t/ndb_autodiscover2.test: Auto merged mysql-test/t/rpl000001.test: Auto merged mysql-test/t/rpl_EE_error.test: Auto merged mysql-test/t/rpl_change_master.test: Auto merged mysql-test/t/rpl_deadlock.test: Auto merged mysql-test/t/rpl_drop.test: Auto merged mysql-test/t/rpl_drop_temp.test: Auto merged mysql-test/t/rpl_error_ignored_table.test: Auto merged mysql-test/t/rpl_flush_log_loop.test: Auto merged mysql-test/t/rpl_insert_id.test: Auto merged mysql-test/t/rpl_loaddata.test: Auto merged mysql-test/t/rpl_rotate_logs.test: Auto merged mysql-test/t/rpl_sp.test: Auto merged mysql-test/t/rpl_until.test: Auto merged mysql-test/t/strict.test: Auto merged mysql-test/t/type_newdecimal.test: Auto merged client/mysqltest.c: Merge with --parsing-disabled mysql-test/t/mysqltest.test: Manual merge
		
			
				
	
	
		
			38 lines
		
	
	
		
			984 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			984 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Verify that after CHANGE MASTER, replication (I/O thread and SQL
 | |
| # thread) restart from where SQL thread left, not from where
 | |
| # I/O thread left (some old bug fixed in 4.0.17)
 | |
| 
 | |
| source include/master-slave.inc;
 | |
| 
 | |
| connection master;
 | |
| # Make SQL slave thread advance a bit
 | |
| create table t1(n int);
 | |
| sync_slave_with_master;
 | |
| select * from t1;
 | |
| # Now stop it and make I/O slave thread be ahead
 | |
| stop slave sql_thread;
 | |
| connection master;
 | |
| insert into t1 values(1);
 | |
| insert into t1 values(2);
 | |
| save_master_pos;
 | |
| connection slave;
 | |
| --real_sleep 3 # wait for I/O thread to have read updates
 | |
| stop slave;
 | |
| --replace_result $MASTER_MYPORT MASTER_MYPORT
 | |
| --replace_column 1 # 8 # 9 # 23 # 33 #
 | |
| show slave status;
 | |
| change master to master_user='root';
 | |
| --replace_result $MASTER_MYPORT MASTER_MYPORT
 | |
| --replace_column 1 # 8 # 9 # 23 # 33 #
 | |
| show slave status;
 | |
| start slave;
 | |
| sync_with_master;
 | |
| select * from t1;
 | |
| connection master;
 | |
| drop table t1;
 | |
| save_master_pos;
 | |
| connection slave;
 | |
| sync_with_master;
 | |
| 
 | |
| # End of 4.1 tests
 |