Function should_trigger_prune

Source
pub(crate) fn should_trigger_prune(
    current: Option<u64>,
    prunable_entry_id: u64,
) -> bool
Expand description

Determines whether pruning should be triggered based on the current pruned entry id and the prunable entry id. Returns true if:

  • There is no current pruned entry id (i.e., pruning has never occurred).
  • The current pruned entry id is greater than the prunable entry id (i.e., there is something to prune).