Skip to main content

gc_blobs

Function gc_blobs 

Source
pub async fn gc_blobs<T>(store: &T) -> Result<GcReport>
where T: Store + BlobStore + ?Sized,
Expand description

Mark-sweep every blob in store: delete the ones no record references.

Explicit and operator-run, for the same reason collection is (ADR 0021): a blob swept while a peer still holds the record naming it cannot be restored by a later sync. Deleting a record does not free its blob — the tombstone pins it — so reclaiming a deleted record’s bytes is three steps: delete, then collect past the horizon, then this.