1
0
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:
Grigory Smolkin 2019-04-20 03:46:00 +03:00
parent fd4ad9d2cb
commit 1630d73bec

View File

@ -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);