Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit511e341

Browse files
committed
[PGPRO-5771] Use common macro for Windows and Linux.
Tags: ptrack
1 parent6ad12a5 commit511e341

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎engine.c‎

Lines changed: 3 additions & 3 deletions
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
#ifPG_VERSION_NUM >=120000
3737
#include"storage/md.h"
@@ -77,7 +77,7 @@ ptrack_file_exists(const char *path)
7777
staticvoid
7878
ptrack_write_chunk(intfd,pg_crc32c*crc,char*chunk,size_tsize)
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)

[8]ページ先頭

©2009-2025 Movatter.jp