pub fn switch_over(
store: &Path,
destination: &Path,
) -> Result<SwitchOutcome, MemoryError>Expand description
Drive the switch from wherever the journal stands to Committed.
Requires a validated destination (Phase::DestinationValidated or
later). Each step is act-then-journal; a re-run after a crash recognises
completed-but-unjournalled steps and journals them late.
ยงErrors
Returns crate::MemoryError when the journal is missing or earlier than
validation, the archive slot is occupied, the disk is in a shape no step of
this migration produces, or a rename, deletion, or journal write fails.