mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 09:22:55 +00:00
Default to 0 in GcCutoffs::select_min()
This commit is contained in:
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user