Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a9bbff9

Browse files
committed
Wait for previous segment in case of invalid stop_lsn
1 parent 2ac21b5 commit a9bbff9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backup.c

+1
Original file line numberDiff line numberDiff line change
@@ -1989,6 +1989,7 @@ pg_stop_backup(pgBackup *backup)
19891989
else
19901990
xlog_path = arclog_path;
19911991

1992+
wait_wal_lsn(stop_backup_lsn, false, true);
19921993
stop_backup_lsn = get_last_wal_lsn(xlog_path, backup->start_lsn,
19931994
stop_backup_lsn, backup->tli,
19941995
true, instance_config.xlog_seg_size);

0 commit comments

Comments
 (0)