Skip to main content

collect_garbage

Function collect_garbage 

Source
pub async fn collect_garbage(
    pool: &PgPool,
    vault: &Vault,
    grace: Duration,
    apply: bool,
) -> AppResult<GcReport>
Expand description

teamcraft vault gc: walks the vault one objects/ab/ directory at a time and finds the blobs no column of BLOB_COLUMNS names and that were not written or stored again within grace. Only with apply are they removed (each after a last check of its time).