Skip to main content

write_head

Function write_head 

Source
pub fn write_head(root: impl AsRef<Path>, run_id: &str) -> Result<()>
Expand description

Point HEAD at run_id, atomically (write to a temp file, then rename) so a crash mid-write leaves the previous pointer intact rather than a truncated one.