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

Commitb794fbc

Browse files
committed
use PG_BINARY_A flag when opening file with map headers
1 parent15c9046 commitb794fbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/data.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2268,7 +2268,7 @@ write_page_headers(BackupPageHeader2 *headers, pgFile *file, HeaderMap *hdr_map,
22682268
{
22692269
elog(LOG,"Creating page header map \"%s\"",map_path);
22702270

2271-
hdr_map->fp=fopen(map_path,"a");
2271+
hdr_map->fp=fopen(map_path,PG_BINARY_A);
22722272
if (hdr_map->fp==NULL)
22732273
elog(ERROR,"Cannot open header file \"%s\": %s",
22742274
map_path,strerror(errno));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp