pub struct CompactionPlan {
pub checkpoint: Checkpoint,
pub retained_ops: Vec<OpRecord>,
pub dropped_ops: usize,
pub frontier: Hlc,
pub as_of_ms: u64,
pub retention: RetentionReport,
}Expand description
A computed (not yet executed) compaction: the retained checkpoint, the ops that stay in the journal, and what happened.
Fields§
§checkpoint: CheckpointThe checkpoint to persist BEFORE truncating — frontier heads + retention-applied state, content-addressed over the whole record.
retained_ops: Vec<OpRecord>Ops strictly above the stable frontier — the journal’s new content.
dropped_ops: usizeHow many ops fall at/below the frontier (dropped from the journal, covered by the checkpoint).
frontier: HlcThe stable frontier the plan cut at.
as_of_ms: u64The effective reference instant the age rules ran with (the caller’s
explicit value, or as_of_from_ops over the below-frontier ops).
retention: RetentionReportWhat retention trimmed inside the checkpoint state.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompactionPlan
impl RefUnwindSafe for CompactionPlan
impl Send for CompactionPlan
impl Sync for CompactionPlan
impl Unpin for CompactionPlan
impl UnsafeUnpin for CompactionPlan
impl UnwindSafe for CompactionPlan
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more