Skip to main content

GcRunner

Type Alias GcRunner 

Source
pub type GcRunner = Arc<dyn Fn(&str) -> Result<u64, String> + Send + Sync>;
Expand description

What a gc actually is, handed in so this module does not have to know.

Takes <namespace>/<name> and returns the bytes that left the filesystem. The real one resolves the catalog row and calls crate::admin::gc_one — the same function gunnar gc runs.

Aliased Type§

pub struct GcRunner { /* private fields */ }