Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8ee9408

Browse files
committed
Avoid referencing Z_DEFAULT_COMPRESSION outside HAVE_LIBZ.
Because that's bad. Discussion: http://postgr.es/m/20220127174545.GV23027@telsasoft.com
1 parent 71cbbbb commit 8ee9408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_basebackup/pg_basebackup.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1919,7 +1919,7 @@ BaseBackup(void)
19191919
}
19201920
AppendStringCommandOption(&buf, use_new_option_syntax,
19211921
"COMPRESSION", compressmethodstr);
1922-
if (compresslevel != 0 && compresslevel != Z_DEFAULT_COMPRESSION)
1922+
if (compresslevel >= 1) /* not 0 or Z_DEFAULT_COMPRESSION */
19231923
AppendIntegerCommandOption(&buf, use_new_option_syntax,
19241924
"COMPRESSION_LEVEL", compresslevel);
19251925
}

0 commit comments

Comments
 (0)