Skip to content

Commit feb1536

Browse files
committed
Fix unlink() error report in KeepFileRestoredFromArchive()
KeepFileRestoredFromArchive() has been using an incorrect WAL segment name in the error report for an unlink() failure. Even without 1200dfd, this was of consequence only on WIN32, where we would miss to report a segment name suffixed by ".deleted%u". Oversight in 60df192, for what looks like a copy-pasto to me. Reported-by: Fujii Masao <masao.fujii@gmail.com> Discussion: https://postgr.es/m/CAHGQGwHSbJnUmWCuF-QNUsGYF=iSSuzLRx1z_dLfYFwfbTu4Cw@mail.gmail.com
1 parent afd63e0 commit feb1536

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/backend/access/transam/xlogarchive.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ KeepFileRestoredFromArchive(const char *path, const char *xlogfname)
398398
ereport(FATAL,
399399
(errcode_for_file_access(),
400400
errmsg("could not remove file \"%s\": %m",
401-
xlogfpath)));
401+
oldpath)));
402402
#endif
403403
reload = true;
404404
}

0 commit comments

Comments
 (0)