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

Method CommitObject

db/root.go:251–261  ·  view source on GitHub ↗
(ctx context.Context, poolID ksuid.KSUID, branchName string)

Source from the content-addressed store, hash-verified

249}
250
251func (r *Root) CommitObject(ctx context.Context, poolID ksuid.KSUID, branchName string) (ksuid.KSUID, error) {
252 pool, err := r.OpenPool(ctx, poolID)
253 if err != nil {
254 return ksuid.Nil, err
255 }
256 branchRef, err := pool.LookupBranchByName(ctx, branchName)
257 if err != nil {
258 return ksuid.Nil, err
259 }
260 return branchRef.Commit, nil
261}
262
263func (r *Root) SortKeys(ctx context.Context, src dag.Op) order.SortKeys {
264 switch src := src.(type) {

Callers

nothing calls this directly

Calls 2

OpenPoolMethod · 0.95
LookupBranchByNameMethod · 0.80

Tested by

no test coverage detected