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

Appearance settings

Commit b794fbc

Browse filesBrowse files
committed
use PG_BINARY_A flag when opening file with map headers
1 parent 15c9046 commit b794fbc
Copy full SHA for b794fbc

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/data.c

Copy file name to clipboardExpand all lines: src/data.c
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.