Skip to content

Commit bb3c064

Browse files
committed
PGPRO-2180: Use archive_timeout only, do not use checkpoint_timeout
1 parent 7532cb3 commit bb3c064

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/backup.c

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,21 +1545,18 @@ wait_wal_lsn(XLogRecPtr lsn, bool is_start_lsn, bool wait_prev_segment)
15451545
DATABASE_DIR, PG_XLOG_DIR);
15461546
join_path_components(wal_segment_path, pg_wal_dir, wal_segment);
15471547
wal_segment_dir = pg_wal_dir;
1548-
1549-
timeout = (uint32) checkpoint_timeout();
1550-
timeout = timeout + timeout * 0.1;
15511548
}
15521549
else
15531550
{
15541551
join_path_components(wal_segment_path, arclog_path, wal_segment);
15551552
wal_segment_dir = arclog_path;
1556-
1557-
if (archive_timeout > 0)
1558-
timeout = archive_timeout;
1559-
else
1560-
timeout = ARCHIVE_TIMEOUT_DEFAULT;
15611553
}
15621554

1555+
if (archive_timeout > 0)
1556+
timeout = archive_timeout;
1557+
else
1558+
timeout = ARCHIVE_TIMEOUT_DEFAULT;
1559+
15631560
if (wait_prev_segment)
15641561
elog(LOG, "Looking for segment: %s", wal_segment);
15651562
else

0 commit comments

Comments
 (0)