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

Commita27048c

Browse files
committed
More cleanup of 'ThisTimeLineID'.
In XLogCtlData, rename the structure member ThisTimeLineID toInsertTimeLineID and update the comments to make clear that it's onlyexpected to be set after recovery is complete.In StartupXLOG, replace the local variables ThisTimeLineID andPrevTimeLineID with new local variables replayTLI and newTLI. In theold scheme, ThisTimeLineID was the replay TLI until we created a newtimeline, and after that the replay TLI was in PrevTimeLineID. Now,replayTLI is the TLI from which we last replayed WAL throughout theentire function, and newTLI is either that, or the new timeline createdupon promotion.Remove some misleading comments from the comment block just above whererecoveryTargetTimeLineGoal and friends are declared. It's becomeincorrect, not only because ThisTimeLineID as a variable is now gone,but also because the rmgr code does not care about ThisTimeLineID andhas not since what used to be the TLI field in the page header wasrepurposed to store the page checksum.Add a comment GetFlushRecPtr that it's only supposed to be used innormal running, and an assertion to verify that this is so.Per some ideas from Michael Paquier and some of my own. Review byMichael Paquier also.Discussion:http://postgr.es/m/CA+TgmoY1a2d1AnVR3tJcKmGGkhj7GGrwiNwjtKr21dxOuLBzCQ@mail.gmail.com
1 parent733e039 commita27048c

File tree

1 file changed

+62
-63
lines changed
  • src/backend/access/transam

1 file changed

+62
-63
lines changed

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp