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 5d34864

Browse filesBrowse files
committed
use fseeko instead of fseek when accessing the map of page headers
1 parent b794fbc commit 5d34864
Copy full SHA for 5d34864

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
@@ -2158,7 +2158,7 @@ get_data_file_headers(HeaderMap *hdr_map, pgFile *file, uint32 backup_version, b
21582158
/* disable buffering for header file */
21592159
setvbuf(in, NULL, _IONBF, 0);
21602160

2161-
if (fseek(in, file->hdr_off, SEEK_SET))
2161+
if (fseeko(in, file->hdr_off, SEEK_SET))
21622162
{
21632163
elog(strict ? ERROR : WARNING, "Cannot seek to position %llu in page header map \"%s\": %s",
21642164
file->hdr_off, hdr_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.