diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index c5fe7e6fa4c..9ce4297e3de 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -12799,8 +12799,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