mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
Merge branch '10.0' into 10.1
This commit is contained in:
commit
2f20d297f8
150 changed files with 2247 additions and 567 deletions
|
|
@ -15,11 +15,11 @@ source include/have_debug.inc;
|
|||
# Avoid CrashReporter popup on Mac
|
||||
--source include/not_crashrep.inc
|
||||
call mtr.add_suppression('Attempting backtrace');
|
||||
call mtr.add_suppression('MSYQL_BIN_LOG::purge_logs failed to process registered files that would be purged.');
|
||||
call mtr.add_suppression('MSYQL_BIN_LOG::open failed to sync the index file');
|
||||
call mtr.add_suppression('MYSQL_BIN_LOG::purge_logs failed to process registered files that would be purged.');
|
||||
call mtr.add_suppression('MYSQL_BIN_LOG::open failed to sync the index file');
|
||||
call mtr.add_suppression('Turning logging off for the whole duration of the MySQL server process.');
|
||||
call mtr.add_suppression('Could not open .*');
|
||||
call mtr.add_suppression('MSYQL_BIN_LOG::purge_logs failed to clean registers before purging logs.');
|
||||
call mtr.add_suppression('MYSQL_BIN_LOG::purge_logs failed to clean registers before purging logs.');
|
||||
flush tables;
|
||||
|
||||
let $old=`select @@debug`;
|
||||
|
|
|
|||
|
|
@ -275,7 +275,7 @@ SET GLOBAL debug_dbug=@old_debug;
|
|||
### while registering the index file and the binary log
|
||||
### file or failure to write the rotate event.
|
||||
|
||||
call mtr.add_suppression("MSYQL_BIN_LOG::open failed to sync the index file.");
|
||||
call mtr.add_suppression("MYSQL_BIN_LOG::open failed to sync the index file.");
|
||||
call mtr.add_suppression("Could not open .*");
|
||||
|
||||
RESET MASTER;
|
||||
|
|
@ -380,7 +380,7 @@ RESET MASTER;
|
|||
call mtr.add_suppression("Slave I/O: Relay log write failure: could not queue event from master.*");
|
||||
call mtr.add_suppression("Error writing file .*");
|
||||
call mtr.add_suppression("Could not open .*");
|
||||
call mtr.add_suppression("MSYQL_BIN_LOG::open failed to sync the index file.");
|
||||
call mtr.add_suppression("MYSQL_BIN_LOG::open failed to sync the index file.");
|
||||
call mtr.add_suppression("Can't generate a unique log-filename .*");
|
||||
-- echo ###################### TEST #13
|
||||
|
||||
|
|
|
|||
59
mysql-test/extra/table_index_statistics.inc
Normal file
59
mysql-test/extra/table_index_statistics.inc
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
# include file to test index and table statstics for specific storage engine
|
||||
# requires includer set the default strorage engine for the session
|
||||
|
||||
# Bug 602047 (wrong rows_read value)
|
||||
|
||||
FLUSH INDEX_STATISTICS;
|
||||
FLUSH TABLE_STATISTICS;
|
||||
|
||||
SET @userstat_old= @@userstat;
|
||||
SET GLOBAL userstat=ON;
|
||||
|
||||
CREATE TABLE t1 (id int(10), PRIMARY KEY (id));
|
||||
INSERT INTO t1 VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
|
||||
SELECT COUNT(*) FROM t1;
|
||||
SELECT ROWS_READ FROM INFORMATION_SCHEMA.TABLE_STATISTICS WHERE TABLE_NAME='t1';
|
||||
SELECT ROWS_READ FROM INFORMATION_SCHEMA.INDEX_STATISTICS WHERE TABLE_NAME='t1';
|
||||
|
||||
# Test that FLUSH clears one table but not another
|
||||
|
||||
FLUSH TABLE_STATISTICS;
|
||||
|
||||
SELECT ROWS_READ FROM INFORMATION_SCHEMA.TABLE_STATISTICS WHERE TABLE_NAME='t1';
|
||||
SELECT ROWS_READ FROM INFORMATION_SCHEMA.INDEX_STATISTICS WHERE TABLE_NAME='t1';
|
||||
|
||||
# Test that FLUSH clears both tables now
|
||||
|
||||
FLUSH INDEX_STATISTICS;
|
||||
|
||||
SELECT ROWS_READ FROM INFORMATION_SCHEMA.INDEX_STATISTICS WHERE TABLE_NAME='t1';
|
||||
|
||||
# Test that stats are collected after the FLUSH again
|
||||
|
||||
SELECT COUNT(*) FROM t1;
|
||||
SELECT ROWS_READ FROM INFORMATION_SCHEMA.TABLE_STATISTICS WHERE TABLE_NAME='t1';
|
||||
SELECT ROWS_READ FROM INFORMATION_SCHEMA.INDEX_STATISTICS WHERE TABLE_NAME='t1';
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
# Bug 1183625 (handler::update_global_table_stats crash).
|
||||
|
||||
CREATE TABLE t2 (c1 INT UNSIGNED);
|
||||
|
||||
ALTER TABLE t2 MODIFY c1 FLOAT;
|
||||
|
||||
SELECT * FROM INFORMATION_SCHEMA.TABLE_STATISTICS WHERE TABLE_NAME='t2';
|
||||
|
||||
DROP TABLE t2;
|
||||
|
||||
# Bug 1183625 (handler::update_global_table_stats crash).
|
||||
|
||||
CREATE TABLE t2 (c1 INT UNSIGNED);
|
||||
|
||||
ALTER TABLE t2 MODIFY c1 FLOAT;
|
||||
|
||||
SELECT * FROM INFORMATION_SCHEMA.TABLE_STATISTICS WHERE TABLE_NAME='t2';
|
||||
|
||||
DROP TABLE t2;
|
||||
|
||||
SET GLOBAL userstat= @userstat_old;
|
||||
Loading…
Add table
Add a link
Reference in a new issue