pub fn repair_torn_journal_suffix(
journal_path: &Path,
valid_prefix_len: usize,
) -> Result<()>Expand description
Truncates an unterminated trailing line from journal_path at valid_prefix_len and fsyncs both file and parent directory.