#[non_exhaustive]pub enum CleanupAction {
RepairArchiveIndex {
file_name: String,
retired_file_names: Vec<String>,
reason: String,
bytes: u64,
},
PruneJournal {
lines: usize,
parser_ignored: usize,
missing_segments: usize,
unreadable_revisions: usize,
beyond_retention: usize,
},
UpgradeManifest,
RemoveCheckpoints {
names: Vec<String>,
expired: usize,
unreferenced: usize,
},
RemoveReclaimableArchive {
file_name: String,
segments: usize,
bytes: u64,
},
RewriteArchive {
file_name: String,
replacement_name: String,
segments: usize,
eligible_bytes: u64,
},
RemoveStaleArchive {
file_name: String,
reason: StaleArchiveReason,
bytes: u64,
},
RemoveTemporary {
file_name: String,
bytes: u64,
},
RemoveRecoveryBackup {
file_name: String,
bytes: u64,
},
}Expand description
One concrete, deterministically ordered cleanup action.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
RepairArchiveIndex
Rebuild the index of an active archive that has none.
Reported by the read-only preview, which cannot do more than name the work: the repair itself happens under the repository lock, and every index-dependent decision — the segment sweep, checkpoint removal — can only be planned once it has. The authoritative plan the CLI re-confirms is therefore always larger than the preview that named this.
Fields
file_name: StringArchive file name the rebuilt archive is installed under: the lowest non-empty generation letter of its number.
PruneJournal
Rewrite the journal while retaining readable record lines verbatim.
Fields
UpgradeManifest
Atomically raise store.version from 1 to 2 before writing v2 data.
RemoveCheckpoints
Remove checkpoints in one head update.
Fields
RemoveReclaimableArchive
Unlink a fully reclaimable active archive.
Fields
RewriteArchive
Rewrite an active archive to its next letter with only survivors.
Fields
RemoveStaleArchive
Remove an inactive archive generation or empty incomplete archive.
Fields
reason: StaleArchiveReasonProof supporting removal.
RemoveTemporary
Remove a provably redundant interrupted-operation staging file.
RemoveRecoveryBackup
Remove an explicitly authorized old recovery backup.
Trait Implementations§
Source§impl Clone for CleanupAction
impl Clone for CleanupAction
Source§fn clone(&self) -> CleanupAction
fn clone(&self) -> CleanupAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more