MCPcopy Create free account
hub / github.com/distributedio/titan / getObject

Function getObject

db/object.go:148–161  ·  view source on GitHub ↗
(txn *Transaction, metaKey []byte)

Source from the content-addressed store, hash-verified

146}
147
148func getObject(txn *Transaction, metaKey []byte) (*Object, error) {
149 meta, err := txn.t.Get(metaKey)
150 if err != nil {
151 if IsErrNotFound(err) {
152 return nil, ErrKeyNotFound
153 }
154 return nil, err
155 }
156 obj, err := DecodeObject(meta)
157 if err != nil {
158 return nil, err
159 }
160 return obj, nil
161}

Callers 2

ObjectMethod · 0.85
doExpireFunction · 0.85

Calls 3

IsErrNotFoundFunction · 0.85
DecodeObjectFunction · 0.85
GetMethod · 0.80

Tested by

no test coverage detected