@@ -1686,7 +1686,7 @@ fileEqualCRC(const char *path1, const char *path2, bool path2_is_compressed)
16861686 char buf [1024 ];
16871687 gzFile gz_in = NULL ;
16881688
1689- INIT_FILE_CRC32 (false , crc2 );
1689+ INIT_FILE_CRC32 (true , crc2 );
16901690 gz_in = gzopen (path2 , PG_BINARY_R );
16911691 if (gz_in == NULL )
16921692 /* File cannot be read */
@@ -1704,11 +1704,11 @@ fileEqualCRC(const char *path1, const char *path2, bool path2_is_compressed)
17041704 "Cannot compare WAL file \"%s\" with compressed \"%s\"" ,
17051705 path1 , path2 );
17061706
1707- COMP_FILE_CRC32 (false , crc2 , buf , read_len );
1707+ COMP_FILE_CRC32 (true , crc2 , buf , read_len );
17081708 if (gzeof (gz_in ) || read_len == 0 )
17091709 break ;
17101710 }
1711- FIN_FILE_CRC32 (false , crc2 );
1711+ FIN_FILE_CRC32 (true , crc2 );
17121712
17131713 if (gzclose (gz_in ) != 0 )
17141714 elog (ERROR , "Cannot close compressed WAL file \"%s\": %s" ,
@@ -1717,11 +1717,11 @@ fileEqualCRC(const char *path1, const char *path2, bool path2_is_compressed)
17171717 else
17181718#endif
17191719 {
1720- crc2 = pgFileGetCRC (path2 , false , true, NULL );
1720+ crc2 = pgFileGetCRC (path2 , true , true, NULL );
17211721 }
17221722
17231723 /* Get checksum of original file */
1724- crc1 = pgFileGetCRC (path1 , false , true, NULL );
1724+ crc1 = pgFileGetCRC (path1 , true , true, NULL );
17251725
17261726 return EQ_CRC32C (crc1 , crc2 );
17271727}
0 commit comments