Skip to main content

plan_redb_retention

Function plan_redb_retention 

Source
pub fn plan_redb_retention(
    base_dir: &Path,
    instance_id: &str,
    mode: RetentionMode,
) -> Result<RetentionPlan, EventStoreError>
Expand description

Lists sealed redb run files and computes the non-destructive retention plan.

ยงErrors

Returns EventStoreError when the run directory cannot be listed, a manifest cannot be decoded, or a sealed run file cannot be opened to inspect its snapshot anchor.