Allow safekeeper to stream till real end of wal.

Otherwise it prematurely terminates, e.g. in test_compute_restart.

ref #388
This commit is contained in:
Arseny Sher
2021-08-04 17:02:49 +03:00
committed by Stas Kelvich
parent 1dc2ae6968
commit cc3ac2b74c

View File

@@ -148,7 +148,7 @@ impl ReplicationConn {
break;
}
}
let (wal_end, timeline) = swh.timeline.find_end_of_wal(&swh.conf.data_dir, false);
let (wal_end, timeline) = swh.timeline.find_end_of_wal(&swh.conf.data_dir, true);
if start_pos == Lsn(0) {
start_pos = wal_end;
}