2716c2716
< 	/* Quick check using our local copy of the variable */
---
> 	/* Check using our local copy of minRecoveryPoint */
2720,2732d2719
< 	/*
< 	 * An invalid minRecoveryPoint means that we need to recover all the WAL,
< 	 * i.e., we're doing crash recovery.  We never modify the control file's
< 	 * value in that case, so we can short-circuit future checks here too. The
< 	 * local values of minRecoveryPoint and minRecoveryPointTLI should not be
< 	 * updated until crash recovery finishes.
< 	 */
< 	if (XLogRecPtrIsInvalid(minRecoveryPoint))
< 	{
< 		updateMinRecoveryPoint = false;
< 		return;
< 	}
< 
3125,3133d3111
< 		/*
< 		 * An invalid minRecoveryPoint means that we need to recover all the
< 		 * WAL, i.e., we're doing crash recovery.  We never modify the control
< 		 * file's value in that case, so we can short-circuit future checks
< 		 * here too.
< 		 */
< 		if (XLogRecPtrIsInvalid(minRecoveryPoint))
< 			updateMinRecoveryPoint = false;
< 
6926a6905,6909
> 			/*
> 			 * We are to run crash recovery. We shouldn't update
> 			 * minRecoveryPoint until crash recvoery ends.
> 			 */
> 			updateMinRecoveryPoint = false;
