mirror of
https://github.com/postgres/postgres.git
synced 2026-06-08 16:26:30 -04:00
Fix thinkos from commit 9989d37
Error messages referring to incorrect WAL segment names could have been generated for a fsync() failure or when creating a new segment at the end of recovery.
This commit is contained in:
parent
88d45ac752
commit
68ab982906
1 changed files with 2 additions and 2 deletions
|
|
@ -5528,7 +5528,7 @@ exitArchiveRecovery(TimeLineID endTLI, XLogRecPtr endOfLog)
|
|||
char xlogfname[MAXFNAMELEN];
|
||||
int save_errno = errno;
|
||||
|
||||
XLogFileName(xlogfname, ThisTimeLineID, openLogSegNo,
|
||||
XLogFileName(xlogfname, ThisTimeLineID, startLogSegNo,
|
||||
wal_segment_size);
|
||||
errno = save_errno;
|
||||
ereport(ERROR,
|
||||
|
|
@ -10166,7 +10166,7 @@ issue_xlog_fsync(int fd, XLogSegNo segno)
|
|||
char xlogfname[MAXFNAMELEN];
|
||||
int save_errno = errno;
|
||||
|
||||
XLogFileName(xlogfname, ThisTimeLineID, openLogSegNo,
|
||||
XLogFileName(xlogfname, ThisTimeLineID, segno,
|
||||
wal_segment_size);
|
||||
errno = save_errno;
|
||||
ereport(PANIC,
|
||||
|
|
|
|||
Loading…
Reference in a new issue