Default to 0 in GcCutoffs::select_min()

This commit is contained in:
Erik Grinaker
2025-05-21 10:38:49 +02:00
parent d20178259c
commit 85ae6b54ff

View File

@@ -553,10 +553,8 @@ pub(crate) struct GcCutoffs {
impl GcCutoffs {
fn select_min(&self) -> Lsn {
match self.time {
Some(time) => self.space.min(time),
None => self.space,
}
// NB: if we haven't computed the PITR cutoff yet, we can't GC anything.
self.space.min(self.time.unwrap_or_default())
}
}