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)
61
61
62
62
if (compress_alg != NOT_DEFINED_COMPRESS )
63
63
config -> compress_alg = compress_alg ;
64
- if (compress_level != -1 )
64
+ if (compress_level != DEFAULT_COMPRESS_LEVEL )
65
65
config -> compress_level = compress_level ;
66
66
67
67
if (show_only )
@@ -154,12 +154,7 @@ writeBackupCatalogConfig(FILE *out, pgBackupConfig *config)
154
154
fprintf (out , "#Compression parameters:\n" );
155
155
156
156
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 );
163
158
}
164
159
165
160
void
You can’t perform that action at this time.
0 commit comments