|
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 | #ifPG_VERSION_NUM >=120000 |
37 | 37 | #include"storage/md.h" |
@@ -73,7 +73,7 @@ ptrack_file_exists(const char *path) |
73 | 73 | staticvoid |
74 | 74 | ptrack_write_chunk(intfd,pg_crc32c*crc,char*chunk,size_tsize) |
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); |
|