Skip to main content

diskless_trim_decision

Function diskless_trim_decision 

Source
pub fn diskless_trim_decision(
    frontier: i64,
    high_watermark: i64,
    safety_lag: i64,
    current_start: i64,
) -> DisklessTrimDecision
Expand description

Plan a local trim behind both the committed object-store frontier and the high watermark’s configured safety lag.

Negative offsets and a lag larger than the high watermark fail closed. A negative lag retains the caller’s previous behavior and is treated as zero.