Skip to main content

replay_str

Function replay_str 

Source
pub fn replay_str(text: &str) -> JournalState
Expand description

Fold a journal’s text into the state it describes.

Unreadable lines are counted, never fatal: the last line of a journal whose process died mid-write is exactly the torn record this tolerates, and tolerating it is what makes the file safe to read after a crash.