mariadb/mysql-test/suite/mariabackup/page_compression_level.result
Thirunarayanan Balathandayuthapani d038806dfe MDEV-18855 Mariabackup should fetch innodb_compression_level from running server
- Fetch innodb_compression_level from the running server.Add the value
of innodb_compression_level in backup-my.cnf file during backup phase.
So that prepare can use the innodb_compression_level variable from
backup-my.cnf
2019-03-08 16:00:08 +05:30

14 lines
420 B
Text

set global innodb_compression_level = 3;
CREATE TABLE t1(c1 INT, b CHAR(20)) ENGINE=INNODB PAGE_COMPRESSED=1;
INSERT INTO t1 VALUES(1, 'mariadb');
# xtrabackup backup
# xtrabackup prepare
FOUND /innodb_compression_level=3/ in backup-my.cnf
DELETE FROM t1;
ALTER TABLE t1 DISCARD TABLESPACE;
ALTER TABLE t1 IMPORT TABLESPACE;
SELECT * FROM t1;
c1 b
1 mariadb
DROP TABLE t1;
set global innodb_compression_level = default;