pub fn plan_rewind(log_path: &Path, to_turn: usize) -> Result<RewindPlan>Expand description
Compute a RewindPlan for rewinding to_turn.
to_turn is the turn index whose start state we want to
restore. So to_turn = 0 undoes everything; to_turn = 3
preserves turns 0..=2 and undoes 3 and later.
Returns an error if the log doesn’t contain to_turn (e.g. the
session never reached that turn) or if no pre checkpoint was
recorded for it.