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

Method putBase

db/commits/store.go:215–221  ·  view source on GitHub ↗
(ctx context.Context, snap *Snapshot, commit ksuid.KSUID)

Source from the content-addressed store, hash-verified

213}
214
215func (s *Store) putBase(ctx context.Context, snap *Snapshot, commit ksuid.KSUID) error {
216 b, err := snap.serialize()
217 if err != nil {
218 return err
219 }
220 return storage.Put(ctx, s.engine, s.basePathOf(commit), bytes.NewReader(b))
221}
222
223func (s *Store) basePathOf(commit ksuid.KSUID) *storage.URI {
224 return s.path.JoinPath(commit.String() + ".base.bsup")

Callers 1

SetBaseMethod · 0.95

Calls 4

basePathOfMethod · 0.95
PutFunction · 0.92
serializeMethod · 0.80
NewReaderMethod · 0.45

Tested by

no test coverage detected