Skip to content

Commit 4e74680

Browse files
committed
Prevent the unnecessary creation of .ready file for the timeline history file.
Previously .ready file was created for the timeline history file at the end of an archive recovery even when WAL archiving was not enabled. This creation is unnecessary and causes .ready file to remain infinitely. This commit changes an archive recovery so that it creates .ready file for the timeline history file only when WAL archiving is enabled. Backpatch to all supported versions.
1 parent 7225abf commit 4e74680

File tree

1 file changed

+5
-2
lines changed
  • src/backend/access/transam

1 file changed

+5
-2
lines changed

src/backend/access/transam/xlog.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4615,8 +4615,11 @@ writeTimeLineHistory(TimeLineID newTLI, TimeLineID parentTLI,
46154615
#endif
46164616

46174617
/* The history file can be archived immediately. */
4618-
TLHistoryFileName(histfname, newTLI);
4619-
XLogArchiveNotify(histfname);
4618+
if (XLogArchivingActive())
4619+
{
4620+
TLHistoryFileName(histfname, newTLI);
4621+
XLogArchiveNotify(histfname);
4622+
}
46204623
}
46214624

46224625
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy