MCPcopy Create free account
hub / github.com/brimdata/super / Vacuum

Method Vacuum

db/api/local.go:222–236  ·  view source on GitHub ↗
(ctx context.Context, pool, revision string, dryrun bool)

Source from the content-addressed store, hash-verified

220}
221
222func (l *local) Vacuum(ctx context.Context, pool, revision string, dryrun bool) ([]ksuid.KSUID, error) {
223 poolID, err := l.PoolID(ctx, pool)
224 if err != nil {
225 return nil, err
226 }
227 p, err := l.db.OpenPool(ctx, poolID)
228 if err != nil {
229 return nil, err
230 }
231 commit, err := p.ResolveRevision(ctx, revision)
232 if err != nil {
233 return nil, err
234 }
235 return p.Vacuum(ctx, commit, dryrun)
236}

Callers

nothing calls this directly

Calls 4

PoolIDMethod · 0.95
OpenPoolMethod · 0.80
ResolveRevisionMethod · 0.80
VacuumMethod · 0.65

Tested by

no test coverage detected