8000 use fseeko instead of fseek when accessing the map of page headers · postgrespro/pg_probackup@5d34864 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5d34864

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

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
@@ -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