}
/*
- * set backupStartupPoint if we're starting archive recovery from a
- * base backup
+ * set backupStartPoint if we're starting recovery from a base backup
*/
if (haveBackupLabel)
ControlFile->backupStartPoint = checkPoint.redo;
* be further ahead --- ControlFile->minRecoveryPoint cannot have been
* advanced beyond the WAL we processed.
*/
- if (InArchiveRecovery &&
+ if (InRecovery &&
(XLByteLT(EndOfLog, minRecoveryPoint) ||
!XLogRecPtrIsInvalid(ControlFile->backupStartPoint)))
{
* record, the backup was cancelled and the end-of-backup record will
* never arrive.
*/
- if (InArchiveRecovery &&
- !XLogRecPtrIsInvalid(ControlFile->backupStartPoint))
+ if (!XLogRecPtrIsInvalid(ControlFile->backupStartPoint))
ereport(ERROR,
(errmsg("online backup was cancelled, recovery cannot continue")));