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

Method OpenPool

db/root.go:287–293  ·  view source on GitHub ↗
(ctx context.Context, id ksuid.KSUID)

Source from the content-addressed store, hash-verified

285}
286
287func (r *Root) OpenPool(ctx context.Context, id ksuid.KSUID) (*Pool, error) {
288 config, err := r.pools.LookupByID(ctx, id)
289 if err != nil {
290 return nil, err
291 }
292 return r.openPool(ctx, config)
293}
294
295func (r *Root) openPool(ctx context.Context, config *pools.Config) (*Pool, error) {
296 if p, ok := r.poolCache.Get(config.ID); ok {

Callers 15

CommitObjectMethod · 0.95
RemoveBranchMethod · 0.95
MergeBranchMethod · 0.95
RevertMethod · 0.95
BuildVamToSeqFilterMethod · 0.80
lookupPoolMethod · 0.80
sourceOfPoolFunction · 0.80
lookupPoolMethod · 0.80
openPoolMethod · 0.80
PoolIDMethod · 0.80
PoolIDMethod · 0.80
NewPoolMetaScannerFunction · 0.80

Calls 2

openPoolMethod · 0.95
LookupByIDMethod · 0.80

Tested by

no test coverage detected