Skip to main content

write_version_hint

Function write_version_hint 

Source
pub async fn write_version_hint(
    object_store: &ObjectStore,
    base: &Path,
    version: u64,
)
Expand description

Write the version hint file after a successful commit.

The hint is stored as JSON: {"version":N}. This write is best-effort — failures are logged and ignored, since the hint only accelerates reads and never affects correctness (readers verify the hinted version and probe upward from there). It is a no-op for detached versions and for stores that do not benefit from a hint (see uses_version_hint).