mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-01-24 11:46:31 +02:00
fix
This commit is contained in:
parent
dd85de04ab
commit
46c60aca28
@ -61,7 +61,7 @@ do_configure(bool show_only)
|
||||
|
||||
if (compress_alg != NOT_DEFINED_COMPRESS)
|
||||
config->compress_alg = compress_alg;
|
||||
if (compress_level != -1)
|
||||
if (compress_level != DEFAULT_COMPRESS_LEVEL)
|
||||
config->compress_level = compress_level;
|
||||
|
||||
if (show_only)
|
||||
@ -154,12 +154,7 @@ writeBackupCatalogConfig(FILE *out, pgBackupConfig *config)
|
||||
fprintf(out, "#Compression parameters:\n");
|
||||
|
||||
fprintf(out, "compress-algorithm = %s\n", deparse_compress_alg(config->compress_alg));
|
||||
|
||||
/* if none value is set, print default */
|
||||
if (config->compress_level == -1)
|
||||
fprintf(out, "compress-level = %u\n", DEFAULT_COMPRESS_LEVEL);
|
||||
else
|
||||
fprintf(out, "compress-level = %u\n", config->compress_level);
|
||||
fprintf(out, "compress-level = %u\n", config->compress_level);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
x
Reference in New Issue
Block a user