Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteee381e

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 thiscopy-and-pasteo in commit78e1220.Noticed while reviewing code for bug report #15221, from lily liang. Inversion 10 the affected function is only used by multixact.c andcommit_ts, and only in corner-case circumstances, neither of which areinvolved in the reported bug (a pg_subtrans failure.)Author: Álvaro Herrera
1 parent3f85c62 commiteee381e

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
@@ -614,7 +614,7 @@ SimpleLruDoesPhysicalPageExist(SlruCtl ctl, int pageno)
614614

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp