1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Added missing tests for innodb persistent statistics (from mysql-5.6.10)

Made sure that innodb tables for persistent statistics would not
considered by the server as system tables.
This commit is contained in:
Igor Babaev
2013-08-07 17:08:51 -07:00
parent 1b6e66fa20
commit 5d20f7b346
20 changed files with 1475 additions and 6 deletions

View File

@@ -0,0 +1,26 @@
TRUNCATE TABLE test_innodb_stats;
-- eval $insert
ANALYZE TABLE test_innodb_stats;
query_vertical SELECT
stat_name,
stat_value,
sample_size,
stat_description
FROM mysql.innodb_index_stats
WHERE
database_name = DATABASE() AND
table_name = 'test_innodb_stats' AND
index_name = 'a_key' AND
stat_name IN ('n_diff_pfx01', 'n_diff_pfx02', 'n_leaf_pages', 'size')
ORDER BY stat_name;
# provoke reading from persistent storage upon next table access (the SELECT
# from information_schema.statistics below)
FLUSH TABLE test_innodb_stats;
# see what we are going to read
query_vertical SELECT * FROM information_schema.statistics
WHERE table_name = 'test_innodb_stats';