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
|
|
@ -597,7 +597,8 @@ enum options_xtrabackup
|
|||
|
||||
OPT_XTRA_TABLES_EXCLUDE,
|
||||
OPT_XTRA_DATABASES_EXCLUDE,
|
||||
OPT_PROTOCOL
|
||||
OPT_PROTOCOL,
|
||||
OPT_INNODB_COMPRESSION_LEVEL
|
||||
};
|
||||
|
||||
struct my_option xb_client_options[] =
|
||||
|
|
@ -1145,6 +1146,11 @@ Disable with --skip-innodb-doublewrite.", (G_PTR*) &innobase_use_doublewrite,
|
|||
(G_PTR*)&srv_undo_tablespaces, (G_PTR*)&srv_undo_tablespaces,
|
||||
0, GET_ULONG, REQUIRED_ARG, 0, 0, 126, 0, 1, 0},
|
||||
|
||||
{"innodb_compression_level", OPT_INNODB_COMPRESSION_LEVEL,
|
||||
"Compression level used for zlib compression.",
|
||||
(G_PTR*)&page_zip_level, (G_PTR*)&page_zip_level,
|
||||
0, GET_UINT, REQUIRED_ARG, 6, 0, 9, 0, 0, 0},
|
||||
|
||||
{"defaults_group", OPT_DEFAULTS_GROUP, "defaults group in config file (default \"mysqld\").",
|
||||
(G_PTR*) &defaults_group, (G_PTR*) &defaults_group,
|
||||
0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
|
||||
|
|
@ -1381,6 +1387,10 @@ xb_get_one_option(int optid,
|
|||
ADD_PRINT_PARAM_OPT(innodb_checksum_algorithm_names[srv_log_checksum_algorithm]);
|
||||
break;
|
||||
|
||||
case OPT_INNODB_COMPRESSION_LEVEL:
|
||||
ADD_PRINT_PARAM_OPT(page_zip_level);
|
||||
break;
|
||||
|
||||
case OPT_INNODB_BUFFER_POOL_FILENAME:
|
||||
|
||||
ADD_PRINT_PARAM_OPT(innobase_buffer_pool_filename);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue