mirror of
https://github.com/postgres/postgres.git
synced 2025-08-25 20:23:07 +03:00
Revert "Avoid creating archive status ".ready" files too early"
This reverts commit 515e3d84a0
and equivalent commits in back
branches. This solution to the problem has a number of problems, so
we'll try again with a different approach.
Per note from Andres Freund
Discussion: https://postgr.es/m/20210831042949.52eqp5xwbxgrfank@alap3.anarazel.de
This commit is contained in:
@@ -622,7 +622,7 @@ WalReceiverMain(void)
|
||||
if (XLogArchiveMode != ARCHIVE_MODE_ALWAYS)
|
||||
XLogArchiveForceDone(xlogfname);
|
||||
else
|
||||
XLogArchiveNotify(xlogfname, true);
|
||||
XLogArchiveNotify(xlogfname);
|
||||
}
|
||||
recvFile = -1;
|
||||
|
||||
@@ -760,7 +760,7 @@ WalRcvFetchTimeLineHistoryFiles(TimeLineID first, TimeLineID last)
|
||||
if (XLogArchiveMode != ARCHIVE_MODE_ALWAYS)
|
||||
XLogArchiveForceDone(fname);
|
||||
else
|
||||
XLogArchiveNotify(fname, true);
|
||||
XLogArchiveNotify(fname);
|
||||
|
||||
pfree(fname);
|
||||
pfree(content);
|
||||
@@ -915,7 +915,7 @@ XLogWalRcvWrite(char *buf, Size nbytes, XLogRecPtr recptr)
|
||||
if (XLogArchiveMode != ARCHIVE_MODE_ALWAYS)
|
||||
XLogArchiveForceDone(xlogfname);
|
||||
else
|
||||
XLogArchiveNotify(xlogfname, true);
|
||||
XLogArchiveNotify(xlogfname);
|
||||
}
|
||||
recvFile = -1;
|
||||
|
||||
|
Reference in New Issue
Block a user