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

Commitbc1229c

Browse files
committed
Fix two bugs introduced in the xlog.c split.
The comment explaining the naming of timeline history files was wrong, andthe history file was not being arhived.Pointed out by Fujii Masao.
1 parent6bd1760 commitbc1229c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

‎src/backend/access/transam/timeline.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
* A timeline history file lists the timeline changes of the timeline, in
77
* a simple text format. They are archived along with the WAL segments.
88
*
9-
* The files are named like "<WAL segment>.history". For example, if the
10-
* database starts up and switches to timeline 5, while processing WAL
11-
* segment 000000030000002A00000006 (the old timeline was 3), the timeline
12-
* history file would be called "000000050000002A00000006.history".
9+
* The files are named like "<tli>.history". For example, if the database
10+
* starts up and switches to timeline 5, the timeline history file would be
11+
* called "00000005.history".
1312
*
1413
* Each line in the file represents a timeline switch:
1514
*
@@ -376,4 +375,8 @@ writeTimeLineHistory(TimeLineID newTLI, TimeLineID parentTLI,
376375
errmsg("could not rename file \"%s\" to \"%s\": %m",
377376
tmppath,path)));
378377
#endif
378+
379+
/* The history file can be archived immediately. */
380+
TLHistoryFileName(histfname,newTLI);
381+
XLogArchiveNotify(histfname);
379382
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp