Skip to main content

write_segment

Function write_segment 

Source
pub fn write_segment(
    vfs: &dyn Vfs,
    directory: &Path,
    build: SegmentBuild<'_>,
    policy: DurabilityPolicy,
) -> Result<SegmentMeta, SegmentError>
Expand description

Writes a temp file, synchronizes it, renames it into place, then syncs the directory.