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