mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	Contains also
MDEV-10547: Test multi_update_innodb fails with InnoDB 5.7
	The failure happened because 5.7 has changed the signature of
	the bool handler::primary_key_is_clustered() const
	virtual function ("const" was added). InnoDB was using the old
	signature which caused the function not to be used.
MDEV-10550: Parallel replication lock waits/deadlock handling does not work with InnoDB 5.7
	Fixed mutexing problem on lock_trx_handle_wait. Note that
	rpl_parallel and rpl_optimistic_parallel tests still
	fail.
MDEV-10156 : Group commit tests fail on 10.2 InnoDB (branch bb-10.2-jan)
  Reason: incorrect merge
MDEV-10550: Parallel replication can't sync with master in InnoDB 5.7 (branch bb-10.2-jan)
  Reason: incorrect merge
		
	
		
			
				
	
	
		
			50 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # Bug #60049 Verify that purge leaves no garbage in unique secondary indexes
 | |
| # This test requires a fresh server start-up and a slow shutdown.
 | |
| # This was a suspected bug (not a bug).
 | |
| 
 | |
| -- source include/not_embedded.inc
 | |
| -- source include/have_innodb.inc
 | |
| -- source include/have_innodb_16k.inc
 | |
| 
 | |
| -- disable_query_log
 | |
| call mtr.add_suppression('\\[ERROR\\] InnoDB: Table `mysql`.`innodb_(table|index)_stats` not found');
 | |
| call mtr.add_suppression('\\[ERROR\\] InnoDB: Fetch of persistent statistics requested for table `mysql`.`gtid_executed`');
 | |
| 
 | |
| let $create1 = query_get_value(SHOW CREATE TABLE mysql.innodb_table_stats, Create Table, 1);
 | |
| let $create2 = query_get_value(SHOW CREATE TABLE mysql.innodb_index_stats, Create Table, 1);
 | |
| DROP TABLE mysql.innodb_index_stats;
 | |
| DROP TABLE mysql.innodb_table_stats;
 | |
| -- enable_query_log
 | |
| 
 | |
| CREATE TABLE t(a INT)ENGINE=InnoDB STATS_PERSISTENT=0;
 | |
| RENAME TABLE t TO u;
 | |
| DROP TABLE u;
 | |
| SELECT @@innodb_fast_shutdown;
 | |
| let $MYSQLD_DATADIR=`select @@datadir`;
 | |
| 
 | |
| --source include/shutdown_mysqld.inc
 | |
| 
 | |
| # Check the tail of ID_IND (SYS_TABLES.ID)
 | |
| let IBDATA1=$MYSQLD_DATADIR/ibdata1;
 | |
| perl;
 | |
| my $file = $ENV{'IBDATA1'};
 | |
| open(FILE, "<$file") || die "Unable to open $file";
 | |
| # Read DICT_HDR_TABLE_IDS, the root page number of ID_IND (SYS_TABLES.ID).
 | |
| seek(FILE, 7*16384+38+36, 0) || die "Unable to seek $file";
 | |
| die unless read(FILE, $_, 4) == 4;
 | |
| my $sys_tables_id_root = unpack("N", $_);
 | |
| print "Last record of ID_IND root page ($sys_tables_id_root):\n";
 | |
| # This should be the last record in ID_IND. Dump it in hexadecimal.
 | |
| seek(FILE, $sys_tables_id_root*16384 + 152, 0) || die "Unable to seek $file";
 | |
| read(FILE, $_, 32) || die "Unable to read $file";
 | |
| close(FILE);
 | |
| print unpack("H*", $_), "\n";
 | |
| EOF
 | |
| 
 | |
| --source include/start_mysqld.inc
 | |
| 
 | |
| -- disable_query_log
 | |
| USE mysql;
 | |
| eval $create1;
 | |
| eval $create2;
 |