mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-30 04:26:45 +03:00 
			
		
		
		
	 df3b1a54f4
			
		
	
	df3b1a54f4
	
	
	
		
			
			* A more dynamic binlog format which allows small changes (1064) * Log session variables in Query_log_event (1063) It contains a few bugfixes (which I made when running the testsuite). I carefully updated the results of the testsuite (i.e. I checked for every one, if the difference between .reject and .result could be explained). Apparently mysql-test-run --manager is broken in 4.1 and 5.0 currently, so I could neither run the few tests which require --manager, nor check that they pass nor modify their .result. But for builds, we don't run with --manager. Apart from --manager, the full testsuite passes, with Valgrind too (no errors). I'm going to push in the next minutes. Remains: update the manual. Note: by chance I saw that (in 4.1, in 5.0) rpl_get_lock fails when run alone; this is normal at it makes assumptions on thread ids. I will fix this one day in 4.1.
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			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).
 | |
| # See if slave crashes when doing a CREATE TEMPORARY TABLE twice, separated by
 | |
| # RESET SLAVE.
 | |
| 
 | |
| source include/master-slave.inc;
 | |
| connection master;
 | |
| save_master_pos;
 | |
| connection slave;
 | |
| sync_with_master;
 | |
| --replace_result $MASTER_MYPORT MASTER_PORT
 | |
| --replace_column 1 # 8 # 9 # 23 # 33 #
 | |
| show slave status;
 | |
| 
 | |
| stop slave;
 | |
| change master to master_user='test';
 | |
| --replace_result $MASTER_MYPORT MASTER_PORT
 | |
| --replace_column 1 # 8 # 9 # 23 # 33 #
 | |
| show slave status;
 | |
| 
 | |
| reset slave;
 | |
| --replace_result $MASTER_MYPORT MASTER_PORT
 | |
| --replace_column 1 # 8 # 9 # 23 # 33 #
 | |
| show slave status;
 | |
| 
 | |
| start slave;
 | |
| sync_with_master;
 | |
| --replace_result $MASTER_MYPORT MASTER_PORT
 | |
| --replace_column 1 # 8 # 9 # 23 # 33 #
 | |
| show slave status;
 | |
| 
 | |
| # test of crash with temp tables & RESET SLAVE
 | |
| # (test to see if RESET SLAVE clears temp tables in memory and disk)
 | |
| stop slave;
 | |
| reset slave;
 | |
| start slave;
 | |
| connection master;
 | |
| create temporary table t1 (a int);
 | |
| save_master_pos;
 | |
| connection slave;
 | |
| sync_with_master;
 | |
| stop slave;
 | |
| reset slave;
 | |
| start slave;
 | |
| sync_with_master;
 | |
| show status like 'slave_open_temp_tables';
 |