summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2018-06-06 14:46:53 -0400
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2018-06-06 14:47:57 -0400
commit1a552256f6deae287140a608504e7ea7e8b633a2 (patch)
treee1388e0d87ed8ffc201faee5339f44a11fa0b74a /src
parentbe565fa89ddb2a462f1c47bd7810f94de77e191b (diff)
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 78e122010422. 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
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/transam/slru.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/slru.c b/src/backend/access/transam/slru.c
index ee111ca5391..9789d470780 100644
--- a/src/backend/access/transam/slru.c
+++ b/src/backend/access/transam/slru.c
@@ -615,7 +615,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);
}