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
f616e2b9
Commit
f616e2b9
authored
Jul 18, 2019
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-13625: Add innodb.check_ibd_filesize
parent
eb14806e
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
173 additions
and
0 deletions
+173
-0
mysql-test/suite/innodb/r/check_ibd_filesize,32k.rdiff
mysql-test/suite/innodb/r/check_ibd_filesize,32k.rdiff
+25
-0
mysql-test/suite/innodb/r/check_ibd_filesize,4k.rdiff
mysql-test/suite/innodb/r/check_ibd_filesize,4k.rdiff
+25
-0
mysql-test/suite/innodb/r/check_ibd_filesize,64k.rdiff
mysql-test/suite/innodb/r/check_ibd_filesize,64k.rdiff
+25
-0
mysql-test/suite/innodb/r/check_ibd_filesize,8k.rdiff
mysql-test/suite/innodb/r/check_ibd_filesize,8k.rdiff
+25
-0
mysql-test/suite/innodb/r/check_ibd_filesize.result
mysql-test/suite/innodb/r/check_ibd_filesize.result
+20
-0
mysql-test/suite/innodb/t/check_ibd_filesize.test
mysql-test/suite/innodb/t/check_ibd_filesize.test
+53
-0
No files found.
mysql-test/suite/innodb/r/check_ibd_filesize,32k.rdiff
0 → 100644
View file @
f616e2b9
--- check_ibd_filesize.result
+++ check_ibd_filesize.result,32k
@@ -3,18 +3,12 @@
# SPACE IN 5.7 THAN IN 5.6
#
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;
-# bytes: 98304
+# bytes: 196608
INSERT INTO t1 SELECT * FROM seq_1_to_25000;
-# bytes: 9437184
+# bytes: 786432
DROP TABLE t1;
CREATE TABLE t1 (a INT PRIMARY KEY, b BLOB) ENGINE=InnoDB;
-# bytes: 98304
+# bytes: 196608
INSERT INTO t1 SELECT seq,REPEAT('a',30000) FROM seq_1_to_20;
-# bytes: 2097152
-DROP TABLE t1;
-CREATE TABLE t1 (a INT PRIMARY KEY, b BLOB)
-ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1;
-# bytes: 65536
-INSERT INTO t1 SELECT seq,REPEAT('a',30000) FROM seq_1_to_20;
-# bytes: 65536
+# bytes: 786432
DROP TABLE t1;
mysql-test/suite/innodb/r/check_ibd_filesize,4k.rdiff
0 → 100644
View file @
f616e2b9
--- check_ibd_filesize.result
+++ check_ibd_filesize.result,4k
@@ -3,18 +3,18 @@
# SPACE IN 5.7 THAN IN 5.6
#
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;
-# bytes: 98304
+# bytes: 24576
INSERT INTO t1 SELECT * FROM seq_1_to_25000;
# bytes: 9437184
DROP TABLE t1;
CREATE TABLE t1 (a INT PRIMARY KEY, b BLOB) ENGINE=InnoDB;
-# bytes: 98304
+# bytes: 24576
INSERT INTO t1 SELECT seq,REPEAT('a',30000) FROM seq_1_to_20;
# bytes: 2097152
DROP TABLE t1;
CREATE TABLE t1 (a INT PRIMARY KEY, b BLOB)
ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1;
-# bytes: 65536
+# bytes: 16384
INSERT INTO t1 SELECT seq,REPEAT('a',30000) FROM seq_1_to_20;
-# bytes: 65536
+# bytes: 25600
DROP TABLE t1;
mysql-test/suite/innodb/r/check_ibd_filesize,64k.rdiff
0 → 100644
View file @
f616e2b9
--- check_ibd_filesize.result
+++ check_ibd_filesize.result,64k
@@ -3,18 +3,12 @@
# SPACE IN 5.7 THAN IN 5.6
#
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;
-# bytes: 98304
+# bytes: 393216
INSERT INTO t1 SELECT * FROM seq_1_to_25000;
-# bytes: 9437184
+# bytes: 983040
DROP TABLE t1;
CREATE TABLE t1 (a INT PRIMARY KEY, b BLOB) ENGINE=InnoDB;
-# bytes: 98304
+# bytes: 393216
INSERT INTO t1 SELECT seq,REPEAT('a',30000) FROM seq_1_to_20;
-# bytes: 2097152
-DROP TABLE t1;
-CREATE TABLE t1 (a INT PRIMARY KEY, b BLOB)
-ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1;
-# bytes: 65536
-INSERT INTO t1 SELECT seq,REPEAT('a',30000) FROM seq_1_to_20;
-# bytes: 65536
+# bytes: 1572864
DROP TABLE t1;
mysql-test/suite/innodb/r/check_ibd_filesize,8k.rdiff
0 → 100644
View file @
f616e2b9
--- check_ibd_filesize.result
+++ check_ibd_filesize.result,8k
@@ -3,18 +3,18 @@
# SPACE IN 5.7 THAN IN 5.6
#
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;
-# bytes: 98304
+# bytes: 49152
INSERT INTO t1 SELECT * FROM seq_1_to_25000;
# bytes: 9437184
DROP TABLE t1;
CREATE TABLE t1 (a INT PRIMARY KEY, b BLOB) ENGINE=InnoDB;
-# bytes: 98304
+# bytes: 49152
INSERT INTO t1 SELECT seq,REPEAT('a',30000) FROM seq_1_to_20;
# bytes: 2097152
DROP TABLE t1;
CREATE TABLE t1 (a INT PRIMARY KEY, b BLOB)
ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1;
-# bytes: 65536
+# bytes: 32768
INSERT INTO t1 SELECT seq,REPEAT('a',30000) FROM seq_1_to_20;
-# bytes: 65536
+# bytes: 32768
DROP TABLE t1;
mysql-test/suite/innodb/r/check_ibd_filesize.result
0 → 100644
View file @
f616e2b9
#
# Bug #21950389 SMALL TABLESPACES WITH BLOBS TAKE UP TO 80 TIMES MORE
# SPACE IN 5.7 THAN IN 5.6
#
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;
# bytes: 98304
INSERT INTO t1 SELECT * FROM seq_1_to_25000;
# bytes: 9437184
DROP TABLE t1;
CREATE TABLE t1 (a INT PRIMARY KEY, b BLOB) ENGINE=InnoDB;
# bytes: 98304
INSERT INTO t1 SELECT seq,REPEAT('a',30000) FROM seq_1_to_20;
# bytes: 2097152
DROP TABLE t1;
CREATE TABLE t1 (a INT PRIMARY KEY, b BLOB)
ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1;
# bytes: 65536
INSERT INTO t1 SELECT seq,REPEAT('a',30000) FROM seq_1_to_20;
# bytes: 65536
DROP TABLE t1;
mysql-test/suite/innodb/t/check_ibd_filesize.test
0 → 100644
View file @
f616e2b9
--
source
include
/
innodb_page_size
.
inc
--
source
include
/
have_sequence
.
inc
--
echo
#
--
echo
# Bug #21950389 SMALL TABLESPACES WITH BLOBS TAKE UP TO 80 TIMES MORE
--
echo
# SPACE IN 5.7 THAN IN 5.6
--
echo
#
#
# Table 1: small rows
#
CREATE
TABLE
t1
(
a
INT
PRIMARY
KEY
)
ENGINE
=
InnoDB
;
let
MYSQLD_DATADIR
=
`select @@datadir`
;
perl
;
print
"# bytes: "
,
(
-
s
"
$ENV
{
MYSQLD_DATADIR
}
/test/t1.ibd"
),
"
\n
"
;
EOF
INSERT
INTO
t1
SELECT
*
FROM
seq_1_to_25000
;
perl
;
print
"# bytes: "
,
(
-
s
"
$ENV
{
MYSQLD_DATADIR
}
/test/t1.ibd"
),
"
\n
"
;
EOF
DROP
TABLE
t1
;
#
# Table 2: BLOB
#
CREATE
TABLE
t1
(
a
INT
PRIMARY
KEY
,
b
BLOB
)
ENGINE
=
InnoDB
;
perl
;
print
"# bytes: "
,
(
-
s
"
$ENV
{
MYSQLD_DATADIR
}
/test/t1.ibd"
),
"
\n
"
;
EOF
INSERT
INTO
t1
SELECT
seq
,
REPEAT
(
'a'
,
30000
)
FROM
seq_1_to_20
;
perl
;
print
"# bytes: "
,
(
-
s
"
$ENV
{
MYSQLD_DATADIR
}
/test/t1.ibd"
),
"
\n
"
;
EOF
DROP
TABLE
t1
;
let
$page_size
=
`SELECT @@innodb_page_size`
;
if
(
$page_size
<
32768
)
{
#
# Table 3: compressed BLOB
#
CREATE
TABLE
t1
(
a
INT
PRIMARY
KEY
,
b
BLOB
)
ENGINE
=
InnoDB
ROW_FORMAT
=
COMPRESSED
KEY_BLOCK_SIZE
=
1
;
perl
;
print
"# bytes: "
,
(
-
s
"
$ENV
{
MYSQLD_DATADIR
}
/test/t1.ibd"
),
"
\n
"
;
EOF
INSERT
INTO
t1
SELECT
seq
,
REPEAT
(
'a'
,
30000
)
FROM
seq_1_to_20
;
perl
;
print
"# bytes: "
,
(
-
s
"
$ENV
{
MYSQLD_DATADIR
}
/test/t1.ibd"
),
"
\n
"
;
EOF
DROP
TABLE
t1
;
}
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