Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit83c7bfb

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 endof 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 forthe timeline history file only when WAL archiving is enabled.Backpatch to all supported versions.
1 parent45a607d commit83c7bfb

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)

[8]ページ先頭

©2009-2025 Movatter.jp