diff --git a/src/backend/access/transam/xlogrecovery.c b/src/backend/access/transam/xlogrecovery.c index ec79f492ee..65bc11d5d3 100644 --- a/src/backend/access/transam/xlogrecovery.c +++ b/src/backend/access/transam/xlogrecovery.c @@ -3530,8 +3530,7 @@ WaitForWALToBecomeAvailable(XLogRecPtr RecPtr, bool randAccess, * walreceiver is not active, so that it won't overwrite * WAL that we restore from archive. */ - if (WalRcvStreaming()) - XLogShutdownWalRcv(); + XLogShutdownWalRcv(); /* * Before we sleep, re-scan for possible new timelines if