Skip to main content

Module db_snapshot

Module db_snapshot 

Source
Expand description

Resolve db_snapshot AssetLocations into local cache paths, once per unique location, before the parallel spawn fanout.

Cache layout is: {ns_base_dir}/{sha256(loc_str)}.tgz. The provider’s initialize_db_snapshot now takes a &Path to this already-resolved file and only has to extract it.

Functions§

cleanup_db_snapshot_cache
Remove cache tarballs after all consumers have finished extracting them, gated by the ZOMBIE_RM_TGZ_AFTER_EXTRACT env var. Best-effort: errors are logged and swallowed (cleanup must never fail spawn).
resolve_db_snapshots
Walk every node’s db_snapshot, deduplicate by AssetLocation, and fetch each unique location once into the namespace cache. Returns a map from the original AssetLocation to the local cache PathBuf.

Type Aliases§

ResolvedDbSnapshots
Lookup map produced by resolve_db_snapshots.