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:
Michael Paquier 2019-12-03 18:59:09 +09:00
parent 88d45ac752
commit 68ab982906
1 changed files with 2 additions and 2 deletions

View File

@ -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,