File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 31
31
#include "access/xlog.h"
32
32
#include "catalog/pg_tablespace.h"
33
33
#include "miscadmin.h"
34
- #include "port/pg_crc32c .h"
34
+ #include "storage/checksum .h"
35
35
#include "storage/copydir.h"
36
36
#if PG_VERSION_NUM >= 120000
37
37
#include "storage/md.h"
@@ -77,7 +77,7 @@ ptrack_file_exists(const char *path)
77
77
static void
78
78
ptrack_write_chunk (int fd , pg_crc32c * crc , char * chunk , size_t size )
79
79
{
80
- COMP_CRC32C (* crc , (char * ) chunk , size );
80
+ COMP_CRC32_COMMON (* crc , (char * ) chunk , size );
81
81
82
82
if (write (fd , chunk , size ) != size )
83
83
{
@@ -197,7 +197,7 @@ ptrackMapReadFromFile(const char *ptrack_path)
197
197
pg_crc32c * file_crc ;
198
198
199
199
INIT_CRC32C (crc );
200
- COMP_CRC32C (crc , (char * ) ptrack_map , PtrackCrcOffset );
200
+ COMP_CRC32_COMMON (crc , (char * ) ptrack_map , PtrackCrcOffset );
201
201
FIN_CRC32C (crc );
202
202
203
203
file_crc = (pg_crc32c * ) ((char * ) ptrack_map + PtrackCrcOffset );
You can’t perform that action at this time.
0 commit comments