mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
2d6c2f22a4
- During slow shutdown, shrink the system tablespace which
was done in commit f9003c73a1
(MDEV-14795)
23 lines
837 B
Text
23 lines
837 B
Text
SET GLOBAL innodb_fast_shutdown=0;
|
|
# restart
|
|
SET GLOBAL INNODB_FILE_PER_TABLE= 0;
|
|
Warnings:
|
|
Warning 1287 '@@innodb_file_per_table' is deprecated and will be removed in a future release
|
|
SET UNIQUE_CHECKS=0, FOREIGN_KEY_CHECKS=0;
|
|
CREATE TABLE t1(f1 INT NOT NULL, f2 INT NOT NULL,
|
|
f3 INT NOT NULL, INDEX(f1),
|
|
INDEX(f2), INDEX(f3))ENGINE=InnoDB;
|
|
BEGIN;
|
|
INSERT INTO t1 SELECT seq, seq, seq FROM seq_1_to_16384;
|
|
INSERT INTO t1 SELECT seq, seq, seq FROM seq_1_to_16384;
|
|
INSERT INTO t1 SELECT seq, seq, seq FROM seq_1_to_16384;
|
|
COMMIT;
|
|
DROP TABLE t1;
|
|
SELECT NAME, FILE_SIZE FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESPACES WHERE SPACE = 0;
|
|
NAME FILE_SIZE
|
|
innodb_system 70254592
|
|
SET GLOBAL innodb_fast_shutdown=0;
|
|
# restart
|
|
SELECT NAME, FILE_SIZE FROM INFORMATION_SCHEMA.INNODB_SYS_TABLESPACES WHERE SPACE = 0;
|
|
NAME FILE_SIZE
|
|
innodb_system 3145728
|