Skip to content

Commit 21b28fc

Browse files
committed
cleanup
1 parent 46c60ac commit 21b28fc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pg_probackup.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ uint32 retention_window = 0;
7171

7272
/* compression options */
7373
CompressAlg compress_alg = NOT_DEFINED_COMPRESS;
74-
int compress_level = -1;
74+
int compress_level = DEFAULT_COMPRESS_LEVEL;
7575

7676
/* other options */
7777
char *instance_name;
@@ -353,8 +353,7 @@ main(int argc, char *argv[])
353353
if (num_threads < 1)
354354
num_threads = 1;
355355

356-
if (compress_level != -1 &&
357-
(compress_level < 0 || compress_level > 9))
356+
if (compress_level < 0 || compress_level > 9)
358357
elog(ERROR, "--compress-level value must be in the range from 0 to 9");
359358

360359
/* do actual operation */

0 commit comments

Comments
 (0)