Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 018b800

Browse files
Remove mention of TimeLineID update from comments
Commit 4a92a1c removed the TimeLineID update from RecoveryInProgress, update comments accordingly. Author: Amul Sul <[email protected]> Discussion: https://postgr.es/m/CAAJ_b96wyzs8N45jc-kYd-bTE02hRWQieLZRpsUtNbhap7_PuQ@mail.gmail.com
1 parent 7799d4e commit 018b800

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/backend/access/transam/xlog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8391,8 +8391,8 @@ PerformRecoveryXLogAction(void)
83918391
* Unlike testing InRecovery, this works in any process that's connected to
83928392
* shared memory.
83938393
*
8394-
* As a side-effect, we initialize the local TimeLineID and RedoRecPtr
8395-
* variables the first time we see that recovery is finished.
8394+
* As a side-effect, we initialize the local RedoRecPtr variable the first
8395+
* time we see that recovery is finished.
83968396
*/
83978397
bool
83988398
RecoveryInProgress(void)

src/backend/postmaster/checkpointer.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -384,11 +384,7 @@ CheckpointerMain(void)
384384
bool ckpt_performed = false;
385385
bool do_restartpoint;
386386

387-
/*
388-
* Check if we should perform a checkpoint or a restartpoint. As a
389-
* side-effect, RecoveryInProgress() initializes TimeLineID if
390-
* it's not set yet.
391-
*/
387+
/* Check if we should perform a checkpoint or a restartpoint. */
392388
do_restartpoint = RecoveryInProgress();
393389

394390
/*

0 commit comments

Comments
 (0)