Skip to main content

read_journal

Function read_journal 

Source
pub fn read_journal(path: &Path) -> Result<Vec<Extent>>
Expand description

Read every complete journal row back, tolerating a torn tail.

A journal is a log, not a document: a process killed mid-write leaves a partial final message, and every complete message before it is real. Same rule znippy_common::hot’s segment reader follows. Used by the guards to assert what a crash actually left behind rather than what the writer claimed.