summaryrefslogtreecommitdiff
path: root/src/backend/access/transam
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/access/transam')
-rw-r--r--src/backend/access/transam/xlogrecovery.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/backend/access/transam/xlogrecovery.c b/src/backend/access/transam/xlogrecovery.c
index cb62d43077d..0a5ae5050c4 100644
--- a/src/backend/access/transam/xlogrecovery.c
+++ b/src/backend/access/transam/xlogrecovery.c
@@ -3698,6 +3698,14 @@ WaitForWALToBecomeAvailable(XLogRecPtr RecPtr, bool randAccess,
XLogShutdownWalRcv();
else
{
+ /*
+ * WALRCV_STOPPING state is a transient state while
+ * the startup process is in ShutdownWalRcv(). It
+ * should never appear here since we would be waiting
+ * for the walreceiver to reach WALRCV_STOPPED in that
+ * case.
+ */
+ Assert(WalRcvGetState() != WALRCV_STOPPING);
ResetInstallXLogFileSegmentActive();
}