mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2024-12-12 11:45:24 +02:00
bugfix: don`t use ferror() in get_wal_file()
This commit is contained in:
parent
fd4ad9d2cb
commit
1630d73bec
@ -1362,7 +1362,7 @@ get_wal_file(const char *from_path, const char *to_path)
|
||||
#endif
|
||||
{
|
||||
read_len = fio_fread(in, buf, sizeof(buf));
|
||||
if (ferror(in))
|
||||
if (read_len < 0)
|
||||
{
|
||||
errno_temp = errno;
|
||||
fio_unlink(to_path_temp, FIO_DB_HOST);
|
||||
|
Loading…
Reference in New Issue
Block a user