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

Method PoolID

runtime/exec/environment.go:83–90  ·  view source on GitHub ↗
(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

81}
82
83func (e *Environment) PoolID(ctx context.Context, name string) (ksuid.KSUID, error) {
84 if id, err := dbid.ParseID(name); err == nil {
85 if _, err := e.db.OpenPool(ctx, id); err == nil {
86 return id, nil
87 }
88 }
89 return e.db.PoolID(ctx, name)
90}
91
92func (e *Environment) CommitObject(ctx context.Context, id ksuid.KSUID, name string) (ksuid.KSUID, error) {
93 if e.db != nil {

Callers

nothing calls this directly

Calls 3

ParseIDFunction · 0.92
OpenPoolMethod · 0.80
PoolIDMethod · 0.65

Tested by

no test coverage detected