Skip to main content

gc

Function gc 

Source
pub async fn gc(root: &Path) -> Result<GcSummary>
Expand description

Sweep orphaned code-graph slices from the store at root.

Slices are content-addressed and shared across views (identical content dedups), so GC must mark against every live view’s manifest — deleting a slice still referenced by another view would corrupt it. This enumerates all graph-manifest records across every repo/view, unions their referenced hashes, and mark-sweeps the blob store via gonzalo_core::gc_blobs (A6).