mirror of
https://github.com/postgres/postgres.git
synced 2026-02-22 09:20:24 -05:00
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 78e1220104.
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
This commit is contained in:
parent
3f85c62d9e
commit
eee381ef5e
1 changed files with 1 additions and 1 deletions
|
|
@ -614,7 +614,7 @@ SimpleLruDoesPhysicalPageExist(SlruCtl ctl, int pageno)
|
|||
|
||||
if ((endpos = lseek(fd, 0, SEEK_END)) < 0)
|
||||
{
|
||||
slru_errcause = SLRU_OPEN_FAILED;
|
||||
slru_errcause = SLRU_SEEK_FAILED;
|
||||
slru_errno = errno;
|
||||
SlruReportIOError(ctl, pageno, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue