Skip to content

Commit 83c7bfb

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 45a607d commit 83c7bfb

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
@@ -4492,8 +4492,11 @@ writeTimeLineHistory(TimeLineID newTLI, TimeLineID parentTLI,
44924492
#endif
44934493

44944494
/* The history file can be archived immediately. */
4495-
TLHistoryFileName(histfname, newTLI);
4496-
XLogArchiveNotify(histfname);
4495+
if (XLogArchivingActive())
4496+
{
4497+
TLHistoryFileName(histfname, newTLI);
4498+
XLogArchiveNotify(histfname);
4499+
}
44974500
}
44984501

44994502
/*

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