pub fn sweep_orphaned_temp_files(directory: &Utf8Path, max_age: Duration)Expand description
Remove checkpoint temp files in directory left behind by a process that
crashed between writing and renaming a checkpoint. Only entries older than
max_age are removed, leaving a temp file currently being written by
another consumer process untouched. Best-effort: a missing directory or a
per-entry failure is skipped rather than reported.