Fix checking for recovery state in WaitForLSN()

Alexander Korotkov <akorotkov@postgresql.org>

Commit: 7742f99a02ed1679eb6baeb35491ea3cf8a3a36e
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2025-11-07T21:34:50Z
Fix checking for recovery state in WaitForLSN()

We only need to do it for WAIT_LSN_TYPE_REPLAY.  WAIT_LSN_TYPE_FLUSH can work
for both primary and follower.

Files

PathChange+/−
src/backend/access/transam/xlogwait.c modified +1 −1