Skip to content

Commit 9a58e00

Browse files
committed
Fix PathNameOpenFile
1 parent 9af8b2e commit 9a58e00

File tree

1 file changed

+3
-4
lines changed
  • src/backend/storage/file

1 file changed

+3
-4
lines changed

src/backend/storage/file/fd.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,8 +1341,8 @@ PathNameOpenFile(FileName fileName, int fileFlags, int fileMode)
13411341

13421342
if (fileFlags & PG_COMPRESSION)
13431343
{
1344-
char* mapFileName = psprintf("%s.cfm", vfdP->fileName);
1345-
vfdP->md = BasicOpenFile(mapFileName, vfdP->fileFlags & ~PG_COMPRESSION, vfdP->fileMode);
1344+
char* mapFileName = psprintf("%s.cfm", fileName);
1345+
vfdP->md = BasicOpenFile(mapFileName, fileFlags, fileMode);
13461346
pfree(mapFileName);
13471347
if (vfdP->md < 0)
13481348
{
@@ -1362,8 +1362,7 @@ PathNameOpenFile(FileName fileName, int fileFlags, int fileMode)
13621362
vfdP->generation = vfdP->map->generation;
13631363
pg_read_barrier();
13641364

1365-
vfdP->fd = BasicOpenFile(vfdP->fileName, vfdP->fileFlags,
1366-
vfdP->fileMode);
1365+
vfdP->fd = BasicOpenFile(fileName, fileFlags, fileMode);
13671366
if (vfdP->fd < 0)
13681367
{
13691368
save_errno = errno;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy