Skip to content

Commit c07bb70

Browse files
author
Jan Lindström
committed
MDEV-11629: Unknown table 'innodb_cmp_per_index_reset' in
information_schema. Added .opt file to enable running this test as a part of innodb_zip suite and recorded current correct results.
1 parent 238c670 commit c07bb70

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
cmp_per_index: MDEV-11629
1+

mysql-test/suite/innodb_zip/r/cmp_per_index.result

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ BEGIN;
3939
COMMIT;
4040
ALTER TABLE t DROP INDEX c;
4141
GRANT USAGE ON *.* TO 'tuser01'@'localhost' IDENTIFIED BY 'cDJvI9s_Uq';
42-
Warnings:
43-
Level Warning
44-
Code 1287
45-
Message Using GRANT for creating new user is deprecated and will be removed in future release. Create new user with CREATE USER statement.
4642
FLUSH PRIVILEGES;
43+
connect con1,localhost,tuser01,cDJvI9s_Uq,;
44+
connection con1;
4745
SELECT * FROM information_schema.innodb_cmp_per_index;
4846
ERROR 42000: Access denied; you need (at least one of) the PROCESS privilege(s) for this operation
47+
connection default;
48+
disconnect con1;
4949
DROP USER 'tuser01'@'localhost';
5050
SELECT
5151
database_name,
@@ -70,7 +70,6 @@ index_name PRIMARY
7070
compress_ops 65
7171
compress_ops_ok 65
7272
uncompress_ops 0
73-
# restart
7473
SET GLOBAL innodb_cmp_per_index_enabled=ON;
7574
SELECT COUNT(*) FROM t;
7675
COUNT(*) 128
@@ -86,9 +85,15 @@ FROM information_schema.innodb_cmp_per_index
8685
ORDER BY 1, 2, 3;
8786
database_name test
8887
table_name t
88+
index_name b
89+
compress_ops 0
90+
compress_ops_ok 0
91+
uncompress_ops 6
92+
database_name test
93+
table_name t
8994
index_name PRIMARY
9095
compress_ops 0
9196
compress_ops_ok 0
92-
uncompress_ops 9
97+
uncompress_ops 5
9398
DROP TABLE t;
9499
SET GLOBAL innodb_cmp_per_index_enabled=default;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--innodb_log_compressed_pages=on
2+
--innodb_cmp_per_index_reset

0 commit comments

Comments
 (0)