Skip to content

Commit 7532cb3

Browse files
committed
PGPRO-2180: Reasonable time
1 parent bdf2539 commit 7532cb3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backup.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1612,7 +1612,8 @@ wait_wal_lsn(XLogRecPtr lsn, bool is_start_lsn, bool wait_prev_segment)
16121612
* to get LSN of last valid record prior to the target LSN. But only
16131613
* in case of a backup from a replica.
16141614
*/
1615-
if (!exclusive_backup && current.from_replica)
1615+
if (!exclusive_backup && current.from_replica &&
1616+
(try_count > timeout / 4))
16161617
{
16171618
XLogRecPtr res;
16181619

0 commit comments

Comments
 (0)