Skip to content

Commit 511e341

Browse files
committed
[PGPRO-5771] Use common macro for Windows and Linux.
Tags: ptrack
1 parent 6ad12a5 commit 511e341

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: engine.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include "access/xlog.h"
3232
#include "catalog/pg_tablespace.h"
3333
#include "miscadmin.h"
34-
#include "port/pg_crc32c.h"
34+
#include "storage/checksum.h"
3535
#include "storage/copydir.h"
3636
#if PG_VERSION_NUM >= 120000
3737
#include "storage/md.h"
@@ -77,7 +77,7 @@ ptrack_file_exists(const char *path)
7777
static void
7878
ptrack_write_chunk(int fd, pg_crc32c *crc, char *chunk, size_t size)
7979
{
80-
COMP_CRC32C(*crc, (char *) chunk, size);
80+
COMP_CRC32_COMMON(*crc, (char *) chunk, size);
8181

8282
if (write(fd, chunk, size) != size)
8383
{
@@ -197,7 +197,7 @@ ptrackMapReadFromFile(const char *ptrack_path)
197197
pg_crc32c *file_crc;
198198

199199
INIT_CRC32C(crc);
200-
COMP_CRC32C(crc, (char *) ptrack_map, PtrackCrcOffset);
200+
COMP_CRC32_COMMON(crc, (char *) ptrack_map, PtrackCrcOffset);
201201
FIN_CRC32C(crc);
202202

203203
file_crc = (pg_crc32c *) ((char *) ptrack_map + PtrackCrcOffset);

0 commit comments

Comments
 (0)