Skip to content

Commit e802a2d

Browse files
committed
minor fixes
1 parent 2f7f677 commit e802a2d

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/archive.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ get_wal_file(const char *filename, const char *from_fullpath,
13921392
#ifdef HAVE_LIBZ
13931393
/* If requested file is regular WAL segment, then try to open it with '.gz' suffix... */
13941394
if (IsXLogFileName(filename))
1395-
rc = fio_send_file_gz(from_fullpath_gz, to_fullpath, out, NULL, &errmsg);
1395+
rc = fio_send_file_gz(from_fullpath_gz, to_fullpath, out, &errmsg);
13961396
if (rc == FILE_MISSING)
13971397
#endif
13981398
/* ... failing that, use uncompressed */
@@ -1406,7 +1406,7 @@ get_wal_file(const char *filename, const char *from_fullpath,
14061406
#ifdef HAVE_LIBZ
14071407
/* '.gz.partial' goes first ... */
14081408
snprintf(from_partial, sizeof(from_partial), "%s.gz.partial", from_fullpath);
1409-
rc = fio_send_file_gz(from_partial, to_fullpath, out, NULL, &errmsg);
1409+
rc = fio_send_file_gz(from_partial, to_fullpath, out, &errmsg);
14101410
if (rc == FILE_MISSING)
14111411
#endif
14121412
{

src/pg_probackup.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,8 +1030,7 @@ extern int fio_send_pages(FILE* out, const char *from_fullpath, pgFile *file, XL
10301030
int calg, int clevel, uint32 checksum_version,
10311031
datapagemap_t *pagemap, BlockNumber* err_blknum, char **errormsg);
10321032
/* return codes for fio_send_pages */
1033-
extern int fio_send_file_gz(const char *from_fullpath, const char *to_fullpath, FILE* out,
1034-
pgFile *file, char **errormsg);
1033+
extern int fio_send_file_gz(const char *from_fullpath, const char *to_fullpath, FILE* out, char **errormsg);
10351034
extern int fio_send_file(const char *from_fullpath, const char *to_fullpath, FILE* out,
10361035
pgFile *file, char **errormsg);
10371036

src/utils/file.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1732,8 +1732,7 @@ static void fio_send_pages_impl(int out, char* buf)
17321732
* ZLIB_ERROR (-5)
17331733
* REMOTE_ERROR (-6)
17341734
*/
1735-
int fio_send_file_gz(const char *from_fullpath, const char *to_fullpath, FILE* out,
1736-
pgFile *file, char **errormsg)
1735+
int fio_send_file_gz(const char *from_fullpath, const char *to_fullpath, FILE* out, char **errormsg)
17371736
{
17381737
fio_header hdr;
17391738
int exit_code = SEND_OK;

0 commit comments

Comments
 (0)