File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 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 "common/checksum_helper .h"
35
35
#include "storage/copydir.h"
36
36
#if PG_VERSION_NUM >= 120000
37
37
#include "storage/md.h"
@@ -73,7 +73,7 @@ ptrack_file_exists(const char *path)
73
73
static void
74
74
ptrack_write_chunk (int fd , pg_crc32c * crc , char * chunk , size_t size )
75
75
{
76
- COMP_CRC32C ( * crc , (char * ) chunk , size );
76
+ pg_comp_crc32c_handler ( crc , (char * ) chunk , size );
77
77
78
78
if (write (fd , chunk , size ) != size )
79
79
{
@@ -193,7 +193,7 @@ ptrackMapReadFromFile(const char *ptrack_path)
193
193
pg_crc32c * file_crc ;
194
194
195
195
INIT_CRC32C (crc );
196
- COMP_CRC32C ( crc , (char * ) ptrack_map , PtrackCrcOffset );
196
+ pg_comp_crc32c_handler ( & crc , (char * ) ptrack_map , PtrackCrcOffset );
197
197
FIN_CRC32C (crc );
198
198
199
199
file_crc = (pg_crc32c * ) ((char * ) ptrack_map + PtrackCrcOffset );
You can’t perform that action at this time.
0 commit comments