summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/backend/access/transam/xlogwait.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlogwait.c b/src/backend/access/transam/xlogwait.c
index 6b4c1623e57..34fa41ed9b2 100644
--- a/src/backend/access/transam/xlogwait.c
+++ b/src/backend/access/transam/xlogwait.c
@@ -347,7 +347,7 @@ WaitForLSN(WaitLSNType lsnType, XLogRecPtr targetLSN, int64 timeout)
currentLSN = GetFlushRecPtr(NULL);
/* Check that recovery is still in-progress */
- if (!RecoveryInProgress())
+ if (lsnType == WAIT_LSN_TYPE_REPLAY && !RecoveryInProgress())
{
/*
* Recovery was ended, but check if target LSN was already