Skip to main content

write_offset

Function write_offset 

Source
pub fn write_offset(offset_path: &Path, offset: i64) -> Result<()>
Expand description

Persist offset as the next read position of the file offset_path keys. Replaced atomically: a hook killed mid-write must leave the old offset, not an empty file every later read rejects as corrupt.