Skip to content

Commit 7a4c0ea

Browse files
author
Konstantin Knizhnik
committed
Do not skip recovery in case of replica promotion
1 parent 77c63bf commit 7a4c0ea

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
@@ -5689,7 +5689,7 @@ StartupXLOG(void)
56895689
* In a normal crash recovery, we can just extend the timeline we were in.
56905690
*/
56915691
newTLI = endOfRecoveryInfo->lastRecTLI;
5692-
if (ArchiveRecoveryRequested && !ZenithRecoveryRequested)
5692+
if (ArchiveRecoveryRequested)
56935693
{
56945694
newTLI = findNewestTimeLine(recoveryTargetTLI) + 1;
56955695
ereport(LOG,

0 commit comments

Comments
 (0)