mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	(Fixes core dump in rpl_failed_optimize.test) Ensure we end active transcations if we do an admin command (like optimize, repair etc) mysql-test/extra/rpl_tests/rpl_failed_optimize.test: Added extra test + drop of table at end of test mysql-test/lib/mtr_report.pl: Fail if mysqld asserts or prints stack mysql-test/mysql-test-run.sh: Fail if mysqld asserts or prints stack mysql-test/r/exampledb.result: Cleanup of events_tests (as this caused a lot of problems if it didn't work) mysql-test/r/innodb.result: Extra test to see that we can do an optimize table on an active transaction mysql-test/r/rpl_failed_optimize.result: Added extra test + drop of table at end of test mysql-test/t/exampledb.test: Cleanup of events_tests (as this caused a lot of problems if it didn't work) mysql-test/t/innodb.test: Extra test to see that we can do an optimize table on an active transaction sql/handler.cc: Don't use row level logging on optimize or repair table. sql/log.cc: Simplify code (no logic changes) sql/mysql_priv.h: Added prototype sql/sql_base.cc: Better name for define sql/sql_class.cc: Indentation fix sql/sql_parse.cc: Make end_active_trans() global sql/sql_table.cc: Ensure we end active transcations if we do an admin command (like optimize, repair etc)
		
			
				
	
	
		
			25 lines
		
	
	
		
			482 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			482 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| -- source include/master-slave.inc
 | |
| 
 | |
| #
 | |
| # BUG#5551 "Failed OPTIMIZE TABLE is logged to binary log"
 | |
| # Replication should work when OPTIMIZE TABLE timeouts, and 
 | |
| # when OPTIMIZE TABLE is executed on a non-existing table
 | |
| #
 | |
| 
 | |
| eval CREATE TABLE t1 ( a int ) ENGINE=$engine_type;
 | |
| BEGIN;
 | |
| INSERT INTO t1 VALUES (1);
 | |
| 
 | |
| connection master1;
 | |
| OPTIMIZE TABLE t1;
 | |
| 
 | |
| OPTIMIZE TABLE non_existing;  
 | |
| sync_slave_with_master;
 | |
| 
 | |
| # End of 4.1 tests
 | |
| 
 | |
| connection master;
 | |
| select * from t1;
 | |
| commit;
 | |
| drop table t1;
 |