You've already forked pg_probackup
mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-07-17 07:22:20 +02:00
Fix archive-get compressed error
This commit is contained in:
@ -1315,13 +1315,13 @@ get_wal_file(const char *from_path, const char *to_path)
|
|||||||
/* copy content */
|
/* copy content */
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
size_t read_len = 0;
|
int read_len = 0;
|
||||||
|
|
||||||
#ifdef HAVE_LIBZ
|
#ifdef HAVE_LIBZ
|
||||||
if (is_decompress)
|
if (is_decompress)
|
||||||
{
|
{
|
||||||
read_len = fio_gzread(gz_in, buf, sizeof(buf));
|
read_len = fio_gzread(gz_in, buf, sizeof(buf));
|
||||||
if (read_len != sizeof(buf) && !fio_gzeof(gz_in))
|
if (read_len <= 0 && !fio_gzeof(gz_in))
|
||||||
{
|
{
|
||||||
errno_temp = errno;
|
errno_temp = errno;
|
||||||
fio_unlink(to_path_temp, FIO_DB_HOST);
|
fio_unlink(to_path_temp, FIO_DB_HOST);
|
||||||
|
Reference in New Issue
Block a user