mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02: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:
parent
1b6e66fa20
commit
5d20f7b346
20 changed files with 1475 additions and 6 deletions
45
mysql-test/suite/innodb/r/innodb_stats_drop_locked.result
Normal file
45
mysql-test/suite/innodb/r/innodb_stats_drop_locked.result
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
Table Op Msg_type Msg_text
|
||||
test.innodb_stats_drop_locked analyze status OK
|
||||
SET autocommit=0;
|
||||
SELECT table_name FROM mysql.innodb_table_stats
|
||||
WHERE table_name='innodb_stats_drop_locked'
|
||||
FOR UPDATE;
|
||||
table_name
|
||||
innodb_stats_drop_locked
|
||||
SELECT table_name FROM mysql.innodb_index_stats
|
||||
WHERE table_name='innodb_stats_drop_locked'
|
||||
FOR UPDATE;
|
||||
table_name
|
||||
innodb_stats_drop_locked
|
||||
innodb_stats_drop_locked
|
||||
innodb_stats_drop_locked
|
||||
innodb_stats_drop_locked
|
||||
innodb_stats_drop_locked
|
||||
innodb_stats_drop_locked
|
||||
innodb_stats_drop_locked
|
||||
ALTER TABLE innodb_stats_drop_locked DROP INDEX c_key;
|
||||
Warnings:
|
||||
Warning 1205 Unable to delete statistics for index c_key from mysql.innodb_index_stats because the rows are locked: Lock wait timeout. They can be deleted later using DELETE FROM mysql.innodb_index_stats WHERE database_name = 'test' AND table_name = 'innodb_stats_drop_locked' AND index_name = 'c_key';
|
||||
SHOW CREATE TABLE innodb_stats_drop_locked;
|
||||
Table Create Table
|
||||
innodb_stats_drop_locked CREATE TABLE `innodb_stats_drop_locked` (
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 STATS_PERSISTENT=1
|
||||
DROP TABLE innodb_stats_drop_locked;
|
||||
SHOW TABLES;
|
||||
Tables_in_test
|
||||
COMMIT;
|
||||
SELECT table_name FROM mysql.innodb_table_stats
|
||||
WHERE table_name='innodb_stats_drop_locked';
|
||||
table_name
|
||||
innodb_stats_drop_locked
|
||||
SELECT table_name FROM mysql.innodb_index_stats
|
||||
WHERE table_name='innodb_stats_drop_locked';
|
||||
table_name
|
||||
innodb_stats_drop_locked
|
||||
innodb_stats_drop_locked
|
||||
innodb_stats_drop_locked
|
||||
innodb_stats_drop_locked
|
||||
innodb_stats_drop_locked
|
||||
innodb_stats_drop_locked
|
||||
innodb_stats_drop_locked
|
||||
Loading…
Add table
Add a link
Reference in a new issue