Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1781744

Browse files
Emit msg correctly for timeline-crossing crash
1 parent c94dff4 commit 1781744

File tree

1 file changed

+1
-1
lines changed
  • src/backend/access/transam

1 file changed

+1
-1
lines changed

src/backend/access/transam/xlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5281,7 +5281,7 @@ StartupXLOG(void)
52815281
ereport(LOG,
52825282
(errmsg("database system was not properly shut down; "
52835283
"automatic recovery in progress")));
5284-
if (recoveryTargetTLI > 0)
5284+
if (recoveryTargetTLI > ControlFile->checkPointCopy.ThisTimeLineID)
52855285
ereport(LOG,
52865286
(errmsg("crash recovery starts in timeline %u "
52875287
"and has target timeline %u",

0 commit comments

Comments
 (0)