mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +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:
@@ -248,13 +248,6 @@ WalWriterMain(void)
|
||||
/* Process any signals received recently */
|
||||
HandleWalWriterInterrupts();
|
||||
|
||||
/*
|
||||
* Notify the archiver of any WAL segments that are ready. We do this
|
||||
* here to handle a race condition where WAL is flushed to disk prior
|
||||
* to registering the segment boundary.
|
||||
*/
|
||||
NotifySegmentsReadyForArchive(GetFlushRecPtr());
|
||||
|
||||
/*
|
||||
* Do what we're here for; then, if XLogBackgroundFlush() found useful
|
||||
* work to do, reset hibernation counter.
|
||||
|
||||
Reference in New Issue
Block a user