Skip to content

Commit

Permalink
bugfix: use raw fd to lseek
Browse files Browse the repository at this point in the history
  • Loading branch information
dhwei committed Jun 6, 2024
1 parent 6a6c059 commit e63dee3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/access/pg_tde_tdemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ pg_tde_process_map_entry(const RelFileLocator *rlocator, char *db_map_path, off_
*/
if (should_delete == true && *offset > 0)
{
curr_pos = lseek(map_file, *offset, SEEK_SET);
curr_pos = lseek(FileGetRawDesc(map_file), *offset, SEEK_SET);

if (curr_pos == -1)
{
Expand Down Expand Up @@ -1198,4 +1198,4 @@ pg_tde_write_map_keydata_files(off_t map_size, char *m_file_data, off_t keydata_
LWLockRelease(lock_files);

return true;
}
}

0 comments on commit e63dee3

Please sign in to comment.