MCPcopy
hub / github.com/perkeep/perkeep / getMetaRow

Method getMetaRow

pkg/blobserver/blobpacked/blobpacked.go:841–850  ·  view source on GitHub ↗

if not found, err == nil.

(br blob.Ref)

Source from the content-addressed store, hash-verified

839
840// if not found, err == nil.
841func (s *storage) getMetaRow(br blob.Ref) (meta, error) {
842 v, err := s.meta.Get(blobMetaPrefix + br.String())
843 if err == sorted.ErrNotFound {
844 return meta{}, nil
845 }
846 if err != nil {
847 return meta{}, fmt.Errorf("blobpacked.getMetaRow(%v) = %v", br, err)
848 }
849 return parseMetaRow([]byte(v))
850}
851
852var singleSpace = []byte{' '}
853

Callers 6

SubFetchMethod · 0.95
ReceiveBlobMethod · 0.95
FetchMethod · 0.95
RemoveBlobsMethod · 0.95
StatBlobsMethod · 0.95
zipPartsInUseMethod · 0.95

Calls 3

parseMetaRowFunction · 0.85
GetMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected