mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
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
This commit is contained in:
parent
e3adf96aeb
commit
d038806dfe
4 changed files with 68 additions and 3 deletions
14
mysql-test/suite/mariabackup/page_compression_level.result
Normal file
14
mysql-test/suite/mariabackup/page_compression_level.result
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue