Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 46da0d8

Browse files
committed
Replace error with warning in fileEqualCRC
1 parent 04f0097 commit 46da0d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/data.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -1704,11 +1704,13 @@ fileEqualCRC(const char *path1, const char *path2, bool path2_is_compressed)
17041704
{
17051705
int read_len = fio_gzread(gz_in, buf, sizeof(buf));
17061706
if (read_len <= 0 && !fio_gzeof(gz_in))
1707+
{
17071708
/* An error occurred while reading the file */
1708-
elog(ERROR,
1709+
elog(WARNING,
17091710
"Cannot compare WAL file \"%s\" with compressed \"%s\": %d",
17101711
path1, path2, read_len);
1711-
1712+
return false;
1713+
}
17121714
COMP_FILE_CRC32(true, crc2, buf, read_len);
17131715
if (fio_gzeof(gz_in) || read_len == 0)
17141716
break;

0 commit comments

Comments
 (0)