Update pageserver/src/tenant/timeline.rs

Co-authored-by: Joonas Koivunen <joonas@neon.tech>
This commit is contained in:
Konstantin Knizhnik
2023-03-08 18:23:44 +02:00
parent 6ec9922184
commit 787c4a8bbb

View File

@@ -122,13 +122,13 @@ pub struct Timeline {
pub(super) layers: RwLock<LayerMap<dyn PersistentLayer>>,
//
// Set of key ranges which should be covered by image layers to
// allow GC to remove old layers. BTreeMap key is start of range (inclusive),
// value - end of range (exclusive). This map is constructed by GC
// (when it can not remove layer because it is not covered by image layers)
// and used by compaction when it checks if new image layer should be created.
//
/// Set of key ranges which should be covered by image layers to
/// allow GC to remove old layers.
///
/// BTreeMap key is start of range (inclusive),
/// value - end of range (exclusive). This map is constructed by GC
/// (when it can not remove layer because it is not covered by image layers)
/// and used by compaction when it checks if new image layer should be created.
wanted_image_layers: Mutex<Option<BTreeMap<Key, Key>>>,
last_freeze_at: AtomicLsn,