diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 4af8fdc3642b2aa6ff3f26793b924ff7c0c84f69..3b44c9dade1abbeb15f897f4930493c9def882c0 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -5141,8 +5141,8 @@ readRecoveryCommandFile(void) */ if (recoveryTargetAction == RECOVERY_TARGET_ACTION_PAUSE && recoveryTargetActionSet && - standbyState == STANDBY_DISABLED) - recoveryTargetAction = RECOVERY_TARGET_ACTION_SHUTDOWN; + !EnableHotStandby) + recoveryTargetAction = RECOVERY_TARGET_ACTION_SHUTDOWN; /* Enable fetching from archive recovery area */ ArchiveRecoveryRequested = true;