Skip to content

Commit 81560fc

Browse files
committed
[PBCKP-248] a bit more accurate ifdef
just small refactoring.
1 parent d6ce9dd commit 81560fc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/archive.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -553,17 +553,17 @@ push_file_internal(const char *wal_file_name, const char *pg_xlog_dir,
553553

554554
/* enable streaming compression */
555555
if (is_compress)
556-
#ifdef HAVE_LIBZ
557556
{
557+
#ifdef HAVE_LIBZ
558558
pioFilter_i flt = pioGZCompressFilter(compress_level);
559559
err = pioCopy($reduce(pioWriteFlush, out),
560560
$reduce(pioRead, in),
561561
flt);
562-
}
563-
else
564562
#else
565-
elog(ERROR, "Compression is requested, but not compiled it");
563+
elog(ERROR, "Compression is requested, but not compiled it");
566564
#endif
565+
}
566+
else
567567
{
568568
err = pioCopy($reduce(pioWriteFlush, out),
569569
$reduce(pioRead, in));

0 commit comments

Comments
 (0)