Skip to main content

snapshot_version_at

Function snapshot_version_at 

Source
pub fn snapshot_version_at(dir: &Path) -> Result<Option<u16>>
Expand description

Return the on-disk snapshot format version without decoding the full snapshot.

Reads only the 6-byte header (magic + version LE). Returns None when no snapshot file exists (WAL-only store). Returns an error if the header is malformed.