mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-04 04:46:15 +01:00 
			
		
		
		
	# Conflicts: # mysql-test/suite/galera/r/MW-388.result # mysql-test/suite/galera/t/MW-388.test # mysql-test/suite/innodb/r/truncate_inject.result # mysql-test/suite/innodb/t/truncate_inject.test # mysql-test/suite/rpl/r/rpl_stop_slave.result # mysql-test/suite/rpl/t/rpl_stop_slave.test # sql/sp_head.cc # sql/sp_head.h # sql/sql_lex.cc # sql/sql_yacc.yy # storage/xtradb/buf/buf0dblwr.cc
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			777 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			777 B
		
	
	
	
		
			Text
		
	
	
	
	
	
drop table if exists t1,t2,t3,t4,t5,t6;
 | 
						|
#
 | 
						|
# Bug#26379 - Combination of FLUSH TABLE and REPAIR TABLE
 | 
						|
#             corrupts a MERGE table
 | 
						|
# Problem #3
 | 
						|
#
 | 
						|
CREATE TABLE t1 (c1 INT) ENGINE= MyISAM;
 | 
						|
LOCK TABLE t1 WRITE;
 | 
						|
connect  con1,localhost,root,,;
 | 
						|
SET @orig_debug=@@global.debug_dbug;
 | 
						|
SET GLOBAL debug_dbug="+d,sleep_open_and_lock_after_open";
 | 
						|
INSERT INTO t1 VALUES (1);
 | 
						|
connection default;
 | 
						|
# Let INSERT go into thr_multi_lock().
 | 
						|
# Kick INSERT out of thr_multi_lock().
 | 
						|
FLUSH TABLES;
 | 
						|
# Let INSERT go through open_tables() where it sleeps.
 | 
						|
# Unlock and close table and wait for con1 to close too.
 | 
						|
FLUSH TABLES;
 | 
						|
# This should give no result.
 | 
						|
SELECT * FROM t1;
 | 
						|
c1
 | 
						|
UNLOCK TABLES;
 | 
						|
connection con1;
 | 
						|
SET GLOBAL debug_dbug=@orig_debug;
 | 
						|
disconnect con1;
 | 
						|
connection default;
 | 
						|
DROP TABLE t1;
 |