From cc3ac2b74c1cf246a38170d84f6775384c3a130c Mon Sep 17 00:00:00 2001 From: Arseny Sher Date: Wed, 4 Aug 2021 17:02:49 +0300 Subject: [PATCH] Allow safekeeper to stream till real end of wal. Otherwise it prematurely terminates, e.g. in test_compute_restart. ref #388 --- walkeeper/src/replication.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/walkeeper/src/replication.rs b/walkeeper/src/replication.rs index be9e1c094f..a233c8d536 100644 --- a/walkeeper/src/replication.rs +++ b/walkeeper/src/replication.rs @@ -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; }