diff options
-rw-r--r-- | src/backend/access/transam/xlogrecovery.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/access/transam/xlogrecovery.c b/src/backend/access/transam/xlogrecovery.c index 30661bdad63..b41e6826643 100644 --- a/src/backend/access/transam/xlogrecovery.c +++ b/src/backend/access/transam/xlogrecovery.c @@ -3535,8 +3535,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 |