Skip to content

Commit 1a55225

Browse files
committed
Fix function code in error report
This bug causes a lseek() failure to be reported as a "could not open" failure in the error message, muddling bug reports. I introduced this copy-and-pasteo in commit 78e1220. Noticed while reviewing code for bug report #15221, from lily liang. In version 10 the affected function is only used by multixact.c and commit_ts, and only in corner-case circumstances, neither of which are involved in the reported bug (a pg_subtrans failure.) Author: Álvaro Herrera
1 parent be565fa commit 1a55225

File tree

1 file changed

+1
-1
lines changed
  • src/backend/access/transam

1 file changed

+1
-1
lines changed

src/backend/access/transam/slru.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ SimpleLruDoesPhysicalPageExist(SlruCtl ctl, int pageno)
615615

616616
if ((endpos = lseek(fd, 0, SEEK_END)) < 0)
617617
{
618-
slru_errcause = SLRU_OPEN_FAILED;
618+
slru_errcause = SLRU_SEEK_FAILED;
619619
slru_errno = errno;
620620
SlruReportIOError(ctl, pageno, 0);
621621
}

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