Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
940f23ca
Commit
940f23ca
authored
Oct 04, 2017
by
Alice Sherepa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
innob_zip. 16k
parent
eaacffd8
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
35 additions
and
38 deletions
+35
-38
mysql-test/include/have_innodb_16k.inc
mysql-test/include/have_innodb_16k.inc
+0
-4
mysql-test/suite/innodb_zip/r/innodb_16k.result
mysql-test/suite/innodb_zip/r/innodb_16k.result
+23
-20
mysql-test/suite/innodb_zip/t/innodb_16k.opt
mysql-test/suite/innodb_zip/t/innodb_16k.opt
+3
-1
mysql-test/suite/innodb_zip/t/innodb_16k.test
mysql-test/suite/innodb_zip/t/innodb_16k.test
+5
-9
mysql-test/suite/innodb_zip/t/innodb_cmp_per_index.opt
mysql-test/suite/innodb_zip/t/innodb_cmp_per_index.opt
+1
-0
mysql-test/suite/innodb_zip/t/innodb_cmp_per_index.test
mysql-test/suite/innodb_zip/t/innodb_cmp_per_index.test
+0
-1
mysql-test/suite/innodb_zip/t/innodb_index_large_prefix.opt
mysql-test/suite/innodb_zip/t/innodb_index_large_prefix.opt
+1
-0
mysql-test/suite/innodb_zip/t/innodb_index_large_prefix.test
mysql-test/suite/innodb_zip/t/innodb_index_large_prefix.test
+0
-1
mysql-test/suite/innodb_zip/t/innodb_prefix_index_liftedlimit.opt
...st/suite/innodb_zip/t/innodb_prefix_index_liftedlimit.opt
+1
-0
mysql-test/suite/innodb_zip/t/innodb_prefix_index_liftedlimit.test
...t/suite/innodb_zip/t/innodb_prefix_index_liftedlimit.test
+0
-1
mysql-test/suite/innodb_zip/t/innodb_wl6347_comp_indx_stat.opt
...-test/suite/innodb_zip/t/innodb_wl6347_comp_indx_stat.opt
+1
-0
mysql-test/suite/innodb_zip/t/innodb_wl6347_comp_indx_stat.test
...test/suite/innodb_zip/t/innodb_wl6347_comp_indx_stat.test
+0
-1
No files found.
mysql-test/include/have_innodb_16k.inc
deleted
100644 → 0
View file @
eaacffd8
if
(
`SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE LOWER(variable_name) = 'innodb_page_size' AND variable_value = 16384`
)
{
--
skip
Test
requires
InnoDB
with
16
k
Page
size
.
}
mysql-test/suite/innodb_zip/r/innodb_16k.result
View file @
940f23ca
...
...
@@ -183,35 +183,35 @@ Level Code Message
SELECT table_name, row_format, create_options
FROM information_schema.tables WHERE table_name = 't1';
table_name row_format create_options
t1 Compressed row_format=COMPRESSED
KEY_BLOCK_SIZE
=16
t1 Compressed row_format=COMPRESSED
key_block_size
=16
ALTER TABLE t1 KEY_BLOCK_SIZE=8;
SHOW WARNINGS;
Level Code Message
SELECT table_name, row_format, create_options
FROM information_schema.tables WHERE table_name = 't1';
table_name row_format create_options
t1 Compressed row_format=COMPRESSED
KEY_BLOCK_SIZE
=8
t1 Compressed row_format=COMPRESSED
key_block_size
=8
ALTER TABLE t1 KEY_BLOCK_SIZE=4;
SHOW WARNINGS;
Level Code Message
SELECT table_name, row_format, create_options
FROM information_schema.tables WHERE table_name = 't1';
table_name row_format create_options
t1 Compressed row_format=COMPRESSED
KEY_BLOCK_SIZE
=4
t1 Compressed row_format=COMPRESSED
key_block_size
=4
ALTER TABLE t1 KEY_BLOCK_SIZE=2;
SHOW WARNINGS;
Level Code Message
SELECT table_name, row_format, create_options
FROM information_schema.tables WHERE table_name = 't1';
table_name row_format create_options
t1 Compressed row_format=COMPRESSED
KEY_BLOCK_SIZE
=2
t1 Compressed row_format=COMPRESSED
key_block_size
=2
ALTER TABLE t1 KEY_BLOCK_SIZE=1;
SHOW WARNINGS;
Level Code Message
SELECT table_name, row_format, create_options
FROM information_schema.tables WHERE table_name = 't1';
table_name row_format create_options
t1 Compressed row_format=COMPRESSED
KEY_BLOCK_SIZE
=1
t1 Compressed row_format=COMPRESSED
key_block_size
=1
ALTER TABLE t1 KEY_BLOCK_SIZE=0;
SHOW WARNINGS;
Level Code Message
...
...
@@ -227,35 +227,35 @@ Level Code Message
SELECT table_name, row_format, create_options
FROM information_schema.tables WHERE table_name = 't1';
table_name row_format create_options
t1 Compressed row_format=COMPRESSED
KEY_BLOCK_SIZE
=16
t1 Compressed row_format=COMPRESSED
key_block_size
=16
ALTER TABLE t1 KEY_BLOCK_SIZE=8;
SHOW WARNINGS;
Level Code Message
SELECT table_name, row_format, create_options
FROM information_schema.tables WHERE table_name = 't1';
table_name row_format create_options
t1 Compressed row_format=COMPRESSED
KEY_BLOCK_SIZE
=8
t1 Compressed row_format=COMPRESSED
key_block_size
=8
ALTER TABLE t1 KEY_BLOCK_SIZE=4;
SHOW WARNINGS;
Level Code Message
SELECT table_name, row_format, create_options
FROM information_schema.tables WHERE table_name = 't1';
table_name row_format create_options
t1 Compressed row_format=COMPRESSED
KEY_BLOCK_SIZE
=4
t1 Compressed row_format=COMPRESSED
key_block_size
=4
ALTER TABLE t1 KEY_BLOCK_SIZE=2;
SHOW WARNINGS;
Level Code Message
SELECT table_name, row_format, create_options
FROM information_schema.tables WHERE table_name = 't1';
table_name row_format create_options
t1 Compressed row_format=COMPRESSED
KEY_BLOCK_SIZE
=2
t1 Compressed row_format=COMPRESSED
key_block_size
=2
ALTER TABLE t1 KEY_BLOCK_SIZE=1;
SHOW WARNINGS;
Level Code Message
SELECT table_name, row_format, create_options
FROM information_schema.tables WHERE table_name = 't1';
table_name row_format create_options
t1 Compressed row_format=COMPRESSED
KEY_BLOCK_SIZE
=1
t1 Compressed row_format=COMPRESSED
key_block_size
=1
ALTER TABLE t1 KEY_BLOCK_SIZE=0;
SHOW WARNINGS;
Level Code Message
...
...
@@ -272,17 +272,19 @@ SHOW VARIABLES LIKE 'innodb_file_per_table';
Variable_name Value
innodb_file_per_table OFF
CREATE TABLE t4 (id int PRIMARY KEY) ENGINE=innodb KEY_BLOCK_SIZE=8;
ERROR HY000:
Table storage engine for 't4' doesn't have this option
ERROR HY000:
Can't create table `test`.`t4` (errno: 140 "Wrong create options")
SHOW WARNINGS;
Level Code Message
Warning 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
Error 1031 Table storage engine for 't4' doesn't have this option
Error 1005 Can't create table `test`.`t4` (errno: 140 "Wrong create options")
Warning 1030 Got error 140 "Wrong create options" from storage engine InnoDB
CREATE TABLE t5 (id int PRIMARY KEY) ENGINE=innodb KEY_BLOCK_SIZE=16;
ERROR HY000:
Table storage engine for 't5' doesn't have this option
ERROR HY000:
Can't create table `test`.`t5` (errno: 140 "Wrong create options")
SHOW WARNINGS;
Level Code Message
Warning 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_per_table.
Error 1031 Table storage engine for 't5' doesn't have this option
Error 1005 Can't create table `test`.`t5` (errno: 140 "Wrong create options")
Warning 1030 Got error 140 "Wrong create options" from storage engine InnoDB
SET GLOBAL innodb_file_per_table = ON;
SET GLOBAL innodb_file_format = `Antelope`;
SHOW VARIABLES LIKE 'innodb_file%';
...
...
@@ -292,17 +294,19 @@ innodb_file_format_check ON
innodb_file_format_max Barracuda
innodb_file_per_table ON
CREATE TABLE t4 (id int PRIMARY KEY) ENGINE=innodb KEY_BLOCK_SIZE=8;
ERROR HY000:
Table storage engine for 't4' doesn't have this option
ERROR HY000:
Can't create table `test`.`t4` (errno: 140 "Wrong create options")
SHOW WARNINGS;
Level Code Message
Warning 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_format > Antelope.
Error 1031 Table storage engine for 't4' doesn't have this option
Error 1005 Can't create table `test`.`t4` (errno: 140 "Wrong create options")
Warning 1030 Got error 140 "Wrong create options" from storage engine InnoDB
CREATE TABLE t5 (id int PRIMARY KEY) ENGINE=innodb KEY_BLOCK_SIZE=16;
ERROR HY000:
Table storage engine for 't5' doesn't have this option
ERROR HY000:
Can't create table `test`.`t5` (errno: 140 "Wrong create options")
SHOW WARNINGS;
Level Code Message
Warning 1478 InnoDB: KEY_BLOCK_SIZE requires innodb_file_format > Antelope.
Error 1031 Table storage engine for 't5' doesn't have this option
Error 1005 Can't create table `test`.`t5` (errno: 140 "Wrong create options")
Warning 1030 Got error 140 "Wrong create options" from storage engine InnoDB
SET GLOBAL innodb_file_format = `Barracuda`;
# Test 7) This series of tests were moved from innodb-index to here
# because the second alter table t1 assumes a 16k page size.
...
...
@@ -700,8 +704,7 @@ SELECT COUNT(*) FROM
(SELECT * FROM t1 FORCE INDEX (idx,PRIMARY)
WHERE a BETWEEN 2 AND 7 OR pk=1000000) AS t;
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY <derived2> ALL NULL NULL NULL NULL 1536 NULL
2 DERIVED t1 index_merge PRIMARY,idx idx,PRIMARY 5,4 NULL 1536 Using sort_union(idx,PRIMARY); Using where
1 SIMPLE t1 index_merge PRIMARY,idx idx,PRIMARY 5,4 NULL 1536 Using sort_union(idx,PRIMARY); Using where
SELECT COUNT(*) FROM
(SELECT * FROM t1 FORCE INDEX (idx,PRIMARY)
WHERE a BETWEEN 2 AND 7 OR pk=1000000) AS t;
...
...
mysql-test/suite/innodb_zip/t/innodb_16k.opt
View file @
940f23ca
--innodb_page_size=16384
--innodb-sys-indexes
--innodb-sys-tables
\ No newline at end of file
--innodb-sys-tablespaces
--innodb-sys-datafiles
\ No newline at end of file
mysql-test/suite/innodb_zip/t/innodb_16k.test
View file @
940f23ca
...
...
@@ -3,7 +3,6 @@
# Tests for setting innodb-page-size=16k; default value
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_innodb_16k
.
inc
SET
default_storage_engine
=
InnoDB
;
--
disable_query_log
...
...
@@ -42,10 +41,7 @@ SELECT variable_value FROM information_schema.global_status
--
disable_query_log
--
let
table_stats_id
=
`SELECT table_id FROM information_schema.innodb_sys_tables WHERE name = 'mysql/innodb_table_stats'`
--
let
index_stats_id
=
`SELECT table_id FROM information_schema.innodb_sys_tables WHERE name = 'mysql/innodb_index_stats'`
--
let
$rep_table_1
=
`SELECT table_id FROM information_schema.innodb_sys_tables WHERE name = 'mysql/slave_master_info'`
--
let
$rep_table_2
=
`SELECT table_id FROM information_schema.innodb_sys_tables WHERE name = 'mysql/slave_relay_log_info'`
--
let
$rep_table_3
=
`SELECT table_id FROM information_schema.innodb_sys_tables WHERE name = 'mysql/slave_worker_info'`
--
eval
SELECT
*
FROM
INFORMATION_SCHEMA
.
INNODB_SYS_INDEXES
WHERE
table_id
NOT
IN
(
$table_stats_id
,
$index_stats_id
,
$rep_table_1
,
$rep_table_2
,
$rep_table_3
);
--
eval
SELECT
*
FROM
INFORMATION_SCHEMA
.
INNODB_SYS_INDEXES
WHERE
table_id
NOT
IN
(
$table_stats_id
,
$index_stats_id
);
--
enable_query_log
CREATE
TABLE
t1
(
a
INT
KEY
,
b
TEXT
)
ROW_FORMAT
=
REDUNDANT
ENGINE
=
innodb
;
CREATE
TABLE
t2
(
a
INT
KEY
,
b
TEXT
)
ROW_FORMAT
=
COMPACT
ENGINE
=
innodb
;
...
...
@@ -286,19 +282,19 @@ DROP TABLE t1;
SET
SESSION
innodb_strict_mode
=
ON
;
SET
GLOBAL
innodb_file_per_table
=
OFF
;
SHOW
VARIABLES
LIKE
'innodb_file_per_table'
;
--
error
ER_
ILLEGAL_HA
--
error
ER_
CANT_CREATE_TABLE
CREATE
TABLE
t4
(
id
int
PRIMARY
KEY
)
ENGINE
=
innodb
KEY_BLOCK_SIZE
=
8
;
SHOW
WARNINGS
;
--
error
ER_
ILLEGAL_HA
--
error
ER_
CANT_CREATE_TABLE
CREATE
TABLE
t5
(
id
int
PRIMARY
KEY
)
ENGINE
=
innodb
KEY_BLOCK_SIZE
=
16
;
SHOW
WARNINGS
;
SET
GLOBAL
innodb_file_per_table
=
ON
;
SET
GLOBAL
innodb_file_format
=
`Antelope`
;
SHOW
VARIABLES
LIKE
'innodb_file%'
;
--
error
ER_
ILLEGAL_HA
--
error
ER_
CANT_CREATE_TABLE
CREATE
TABLE
t4
(
id
int
PRIMARY
KEY
)
ENGINE
=
innodb
KEY_BLOCK_SIZE
=
8
;
SHOW
WARNINGS
;
--
error
ER_
ILLEGAL_HA
--
error
ER_
CANT_CREATE_TABLE
CREATE
TABLE
t5
(
id
int
PRIMARY
KEY
)
ENGINE
=
innodb
KEY_BLOCK_SIZE
=
16
;
SHOW
WARNINGS
;
SET
GLOBAL
innodb_file_format
=
`Barracuda`
;
...
...
mysql-test/suite/innodb_zip/t/innodb_cmp_per_index.opt
View file @
940f23ca
--innodb_page_size=16384
--innodb_cmp_per_index_reset
\ No newline at end of file
mysql-test/suite/innodb_zip/t/innodb_cmp_per_index.test
View file @
940f23ca
...
...
@@ -15,7 +15,6 @@ if (`SELECT @@innodb_log_compressed_pages = 0`)
}
# numbers read in this test depend on the page size
--
source
include
/
have_innodb_16k
.
inc
# include/restart_mysqld.inc does not work in embedded mode
--
source
include
/
not_embedded
.
inc
...
...
mysql-test/suite/innodb_zip/t/innodb_index_large_prefix.opt
0 → 100644
View file @
940f23ca
--innodb_page_size=16384
\ No newline at end of file
mysql-test/suite/innodb_zip/t/innodb_index_large_prefix.test
View file @
940f23ca
# Testcase for worklog #5743: Lift the limit of index key prefixes
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_innodb_16k
.
inc
SET
default_storage_engine
=
InnoDB
;
let
$innodb_file_format_orig
=
`select @@innodb_file_format`
;
...
...
mysql-test/suite/innodb_zip/t/innodb_prefix_index_liftedlimit.opt
0 → 100644
View file @
940f23ca
--innodb_page_size=16384
\ No newline at end of file
mysql-test/suite/innodb_zip/t/innodb_prefix_index_liftedlimit.test
View file @
940f23ca
...
...
@@ -14,7 +14,6 @@
######################################################################
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_innodb_16k
.
inc
# Save innodb variables
--
disable_query_log
...
...
mysql-test/suite/innodb_zip/t/innodb_wl6347_comp_indx_stat.opt
0 → 100644
View file @
940f23ca
--innodb_page_size=16384
\ No newline at end of file
mysql-test/suite/innodb_zip/t/innodb_wl6347_comp_indx_stat.test
View file @
940f23ca
...
...
@@ -10,7 +10,6 @@
# This test case needs InnoDB.
--
source
include
/
have_innodb
.
inc
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_innodb_16k
.
inc
--
source
include
/
not_valgrind
.
inc
--
vertical_results
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment