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

Method loadConfig

db/root.go:114–125  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

112}
113
114func (r *Root) loadConfig(ctx context.Context) error {
115 if err := r.readMagic(ctx); err != nil {
116 return err
117 }
118 poolPath := r.path.JoinPath(PoolsTag)
119 var err error
120 r.pools, err = pools.OpenStore(ctx, r.engine, r.logger, poolPath)
121 if err != nil {
122 return err
123 }
124 return err
125}
126
127func (r *Root) writeMagic(ctx context.Context) error {
128 if err := r.readMagic(ctx); err == nil {

Callers 2

OpenFunction · 0.80
CreateFunction · 0.80

Calls 3

readMagicMethod · 0.95
OpenStoreFunction · 0.92
JoinPathMethod · 0.80

Tested by

no test coverage detected