Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9ae6713

Browse files
committed
Fix walmethods.c build without libz
Per numerous buildfarm manuals
1 parentd97a59a commit9ae6713

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎src/bin/pg_basebackup/walmethods.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,9 @@ tar_write(Walfile f, const void *buf, size_t count)
416416
returncount;
417417
}
418418
#endif
419+
else
420+
/* Can't happen - compression enabled with no libz */
421+
return-1;
419422
}
420423

421424
staticbool
@@ -879,8 +882,10 @@ CreateWalTarMethod(const char *tarbase, int compression, bool sync)
879882
tar_data->fd=-1;
880883
tar_data->compression=compression;
881884
tar_data->sync=sync;
885+
#ifdefHAVE_LIBZ
882886
if (compression)
883887
tar_data->zlibOut= (char*)pg_malloc(ZLIB_OUT_SIZE+1);
888+
#endif
884889

885890
returnmethod;
886891
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp