File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ do_configure(bool show_only)
6161
6262 if (compress_alg != NOT_DEFINED_COMPRESS )
6363 config -> compress_alg = compress_alg ;
64- if (compress_level != -1 )
64+ if (compress_level != DEFAULT_COMPRESS_LEVEL )
6565 config -> compress_level = compress_level ;
6666
6767 if (show_only )
@@ -154,12 +154,7 @@ writeBackupCatalogConfig(FILE *out, pgBackupConfig *config)
154154 fprintf (out , "#Compression parameters:\n" );
155155
156156 fprintf (out , "compress-algorithm = %s\n" , deparse_compress_alg (config -> compress_alg ));
157-
158- /* if none value is set, print default */
159- if (config -> compress_level == -1 )
160- fprintf (out , "compress-level = %u\n" , DEFAULT_COMPRESS_LEVEL );
161- else
162- fprintf (out , "compress-level = %u\n" , config -> compress_level );
157+ fprintf (out , "compress-level = %u\n" , config -> compress_level );
163158}
164159
165160void
You can’t perform that action at this time.
0 commit comments