mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	added test/sanity check for master_pos_wait() mysql-test/r/rpl000016.result: do show slave status to test master_pos_wait() mysql-test/t/rpl000001.test: no sleep mysql-test/t/rpl000002.test: no sleep mysql-test/t/rpl000003.test: no sleep mysql-test/t/rpl000007.test: !sleep mysql-test/t/rpl000008.test: !sleep mysql-test/t/rpl000009.test: no sleep mysql-test/t/rpl000010.test: no sleep mysql-test/t/rpl000011.test: no sleep mysql-test/t/rpl000012.test: no sleep mysql-test/t/rpl000013.test: no sleep mysql-test/t/rpl000014.test: no sleep mysql-test/t/rpl000015.test: no sleep mysql-test/t/rpl000016.test: no sleep, test that master_pos_wait() works right sql/slave.cc: fixed bug in master_pos_wait()
		
			
				
	
	
		
			21 lines
		
	
	
		
			539 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			539 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
#this tests the offset off by 22 mystery bug
 | 
						|
#must run slave with --disconnect-slave-event-count=1 --master-connect-retry=1
 | 
						|
source include/master-slave.inc;
 | 
						|
connection slave;
 | 
						|
drop table if exists t1;
 | 
						|
connection master;
 | 
						|
drop table if exists t1;
 | 
						|
create table t1 (n int not null auto_increment primary key);
 | 
						|
insert into t1 values(NULL);
 | 
						|
insert into t1 values(2);
 | 
						|
save_master_pos;
 | 
						|
connection slave;
 | 
						|
sync_with_master;
 | 
						|
@r/rpl000010.result select n from t1;
 | 
						|
connection master;
 | 
						|
drop table t1;
 | 
						|
save_master_pos;
 | 
						|
connection slave;
 | 
						|
sync_with_master;
 | 
						|
 |