Update out-of-date comment in StartupXLOG.
authorRobert Haas <rhaas@postgresql.org>
Wed, 7 Feb 2018 13:48:04 +0000 (08:48 -0500)
committerRobert Haas <rhaas@postgresql.org>
Wed, 7 Feb 2018 13:48:04 +0000 (08:48 -0500)
Commit 4b0d28de06b28e57c540fca458e4853854fbeaf8 should have updated
this comment, but did not.

Thomas Munro

Discussion: http://postgr.es/m/CAEepm=0iJ8aqQcF9ij2KerAkuHF3SwrVTzjMdm1H4w++nfBf9A@mail.gmail.com

src/backend/access/transam/xlog.c

index e42b828edf05b85f279cb98658a183269fabef20..18b7471597fdbd6e0b3982a96705da517b25d995 100644 (file)
@@ -6563,10 +6563,7 @@ StartupXLOG(void)
                StandbyMode = true;
        }
 
-       /*
-        * Get the last valid checkpoint record.  If the latest one according
-        * to pg_control is broken, try the next-to-last one.
-        */
+       /* Get the last valid checkpoint record. */
        checkPointLoc = ControlFile->checkPoint;
        RedoStartLSN = ControlFile->checkPointCopy.redo;
        record = ReadCheckpointRecord(xlogreader, checkPointLoc, 1, true);