mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-30 04:26:45 +03:00 
			
		
		
		
	 bb12d905cb
			
		
	
	bb12d905cb
	
	
	
		
			
			- Bug #985: "Between RESET SLAVE and START SLAVE, SHOW SLAVE STATUS is wrong." Now RESET SLAVE puts correct info in mi->host etc. A new test rpl_reset_slave for that. - Bug #986: "CHANGE MASTER & START SLAVE do not reset error columns in SHOW SLAVE STATUS". Now these reset the errors.
		
			
				
	
	
		
			27 lines
		
	
	
		
			710 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			710 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # See SHOW SLAVE STATUS displays well after RESET SLAVE (it should display the
 | |
| # --master-* options from mysqld, as this is what is going to be used next time
 | |
| # slave threads will be started). In bug 985, it displayed old values (of before
 | |
| # RESET SLAVE).
 | |
| 
 | |
| source include/master-slave.inc;
 | |
| connection master;
 | |
| save_master_pos;
 | |
| connection slave;
 | |
| sync_with_master;
 | |
| --replace_result $MASTER_MYPORT MASTER_PORT
 | |
| show slave status;
 | |
| 
 | |
| stop slave;
 | |
| change master to master_user='test';
 | |
| --replace_result $MASTER_MYPORT MASTER_PORT
 | |
| show slave status;
 | |
| 
 | |
| reset slave;
 | |
| --replace_result $MASTER_MYPORT MASTER_PORT
 | |
| show slave status;
 | |
| 
 | |
| start slave;
 | |
| sync_with_master;
 | |
| --replace_result $MASTER_MYPORT MASTER_PORT
 | |
| show slave status;
 |