]> granicus.if.org Git - postgresql/commitdiff
Emit msg correctly for timeline-crossing crash
authorSimon Riggs <simon@2ndQuadrant.com>
Sun, 19 May 2013 16:00:18 +0000 (17:00 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Sun, 19 May 2013 16:00:18 +0000 (17:00 +0100)
src/backend/access/transam/xlog.c

index ce31c05492caf3720e739052861d2da5a3b8c07f..ceb20b79172d78456a06dcc1333072e37775951d 100644 (file)
@@ -5281,7 +5281,7 @@ StartupXLOG(void)
                        ereport(LOG,
                                        (errmsg("database system was not properly shut down; "
                                                        "automatic recovery in progress")));
-                       if (recoveryTargetTLI > 0)
+                       if (recoveryTargetTLI > ControlFile->checkPointCopy.ThisTimeLineID)
                                ereport(LOG,
                                        (errmsg("crash recovery starts in timeline %u "
                                                        "and has target timeline %u",