mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 19:06:14 +01:00 
			
		
		
		
	 18acf97dfd
			
		
	
	
	18acf97dfd
	
	
	
		
			
			- Record unrecorded tests from `rpl` suite to `engines/funcs` suite (done byd8e448ba1b): 1) Record test `rpl_row_until` from commitd95fa7e3322) Record test `rpl_slave_status` from commita7d186a17d- Stop only running threads for `engines/funcs.rpl_server_id1.test` that is not the same as `rpl.rpl_server_id1.test` - Reviewer: <knielsen@knielsen-hq.org> <andrei.elkin@mariadb.com>
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| # This test checks that the slave I/O thread refuses to start if slave
 | |
| # and master have the same server id (because this is a useless setup,
 | |
| # and otherwise SHOW SLAVE STATUS shows progress but all queries are
 | |
| # ignored, which has caught our customers), unless
 | |
| # --replicate-same-server-id.
 | |
| 
 | |
| --source include/master-slave.inc
 | |
| connection slave;
 | |
| create table t1 (n int);
 | |
| reset master;
 | |
| # replicate ourselves
 | |
| --source include/stop_slave.inc
 | |
| --replace_result $SLAVE_MYPORT SLAVE_PORT
 | |
| eval change master to master_port=$SLAVE_MYPORT;
 | |
| --let $status_items= Slave_IO_Running, Slave_SQL_Running, Last_SQL_Errno, Last_SQL_Error, Exec_Master_Log_Pos
 | |
| --source include/show_slave_status.inc
 | |
| start slave;
 | |
| insert into t1 values (1);
 | |
| 
 | |
| --let $slave_param=Last_IO_Errno
 | |
| --let $slave_param_value=1593
 | |
| --source include/wait_for_slave_param.inc
 | |
| 
 | |
| --let $slave_field_result_replace= / at [0-9]*/ at XXX/
 | |
| --let $status_items= Last_IO_Errno, Last_IO_Error
 | |
| --source include/show_slave_status.inc
 | |
| 
 | |
| --source include/stop_slave_sql.inc
 | |
| reset slave;
 | |
| reset master;
 | |
| drop table t1;
 |