Remove mention of TimeLineID update from comments
authorDaniel Gustafsson <[email protected]>
Wed, 1 Dec 2021 13:17:24 +0000 (14:17 +0100)
committerDaniel Gustafsson <[email protected]>
Wed, 1 Dec 2021 13:17:24 +0000 (14:17 +0100)
Commit 4a92a1c3d 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

src/backend/access/transam/xlog.c
src/backend/postmaster/checkpointer.c

index b980c6ac21c7ccfda2b4bf82f20677ec303cb01d..d894af310a023ee026c629d05c8758daa914ba74 100644 (file)
@@ -8391,8 +8391,8 @@ PerformRecoveryXLogAction(void)
  * Unlike testing InRecovery, this works in any process that's connected to
  * shared memory.
  *
- * As a side-effect, we initialize the local TimeLineID and RedoRecPtr
- * variables the first time we see that recovery is finished.
+ * As a side-effect, we initialize the local RedoRecPtr variable the first
+ * time we see that recovery is finished.
  */
 bool
 RecoveryInProgress(void)
index be7366379d019200ab3dd77592ae1188cc44cd45..25a18b7a14bf8c1417ff9aba5e9fa0a78e9b9883 100644 (file)
@@ -384,11 +384,7 @@ CheckpointerMain(void)
                        bool            ckpt_performed = false;
                        bool            do_restartpoint;
 
-                       /*
-                        * Check if we should perform a checkpoint or a restartpoint. As a
-                        * side-effect, RecoveryInProgress() initializes TimeLineID if
-                        * it's not set yet.
-                        */
+                       /* Check if we should perform a checkpoint or a restartpoint. */
                        do_restartpoint = RecoveryInProgress();
 
                        /*