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

Method createConfig

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

Source from the content-addressed store, hash-verified

102}
103
104func (r *Root) createConfig(ctx context.Context) error {
105 poolPath := r.path.JoinPath(PoolsTag)
106 var err error
107 r.pools, err = pools.CreateStore(ctx, r.engine, r.logger, poolPath)
108 if err != nil {
109 return err
110 }
111 return r.writeMagic(ctx)
112}
113
114func (r *Root) loadConfig(ctx context.Context) error {
115 if err := r.readMagic(ctx); err != nil {

Callers 1

CreateFunction · 0.80

Calls 3

writeMagicMethod · 0.95
CreateStoreFunction · 0.92
JoinPathMethod · 0.80

Tested by

no test coverage detected