pub fn recover_journal<T: LinkReference>(
copies: &[Vec<String>],
options: &EngineOptions,
) -> Result<JournalRecovery, LinkError>Expand description
Pick the longest valid prefix among copies of one journal: the damaged primary first, then replicas, mirrors or a restored backup. Every other copy’s valid prefix must be a prefix of the chosen one. Copies that disagree are refused rather than guessed between, because each may hold commits the other lacks; choose one explicitly. A copy compacted into an engine3 checkpoint disagrees with an uncompacted copy of the same history.