Skip to content

Commit db424d4

Browse files
author
Konstantin Knizhnik
committed
Do not skip recovery in case of replica promotion
1 parent 32d704d commit db424d4

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
@@ -6065,7 +6065,7 @@ StartupXLOG(void)
60656065
* In a normal crash recovery, we can just extend the timeline we were in.
60666066
*/
60676067
newTLI = endOfRecoveryInfo->lastRecTLI;
6068-
if (ArchiveRecoveryRequested && !ZenithRecoveryRequested)
6068+
if (ArchiveRecoveryRequested)
60696069
{
60706070
newTLI = findNewestTimeLine(recoveryTargetTLI) + 1;
60716071
ereport(LOG,

0 commit comments

Comments
 (0)