Files
neon/safekeeper/src
Arthur Petukhovsky a092127b17 Fix truncateLsn initialization (#6396)
In
7f828890cf
we changed the logic for persisting control_files. Previously it was
updated if `peer_horizon_lsn` jumped more than one segment, which made
`peer_horizon_lsn` initialized on disk as soon as safekeeper has
received a first `AppendRequest`.

This caused an issue with `truncateLsn`, which now can be zero
sometimes. This PR fixes it, and now `truncateLsn/peer_horizon_lsn` can
never be zero once we know `timeline_start_lsn`.

Closes https://github.com/neondatabase/neon/issues/6248
2024-01-18 18:55:24 +00:00
..
2024-01-02 10:50:20 +04:00
2023-11-08 16:56:53 +00:00
2023-06-11 22:53:08 +04:00
2023-12-14 17:21:39 +00:00
2023-10-27 12:09:02 +01:00