mirror of
https://github.com/neondatabase/neon.git
synced 2026-10-20 10:43:06 +00:00
Use last_record_lsn to collect keyspace in GC
This commit is contained in:
@@ -3764,7 +3764,9 @@ impl Timeline {
|
||||
|
||||
let mut layers_to_remove = Vec::new();
|
||||
let mut wanted_image_layers = KeySpaceRandomAccum::default();
|
||||
let keyspace = self.collect_keyspace(new_gc_cutoff, ctx).await?;
|
||||
let keyspace = self
|
||||
.collect_keyspace(self.get_last_record_lsn(), ctx)
|
||||
.await?;
|
||||
|
||||
// Scan all layers in the timeline (remote or on-disk).
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user