pub fn write_meta(
dir: &Path,
meta: &TextIndexMeta,
) -> Result<(), TextIndexError>Expand description
Write the sidecar atomically: temp file, fsync, rename, fsync the directory.
A torn write can therefore never leave a stamped epoch over a partially written index: the old file or the new file survives, never a mixture.