MCPcopy
hub / github.com/NVIDIA/aistore / errors

Method errors

downloader/db.go:48–61  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

46}
47
48func (db *downloaderDB) errors(id string) (errors []TaskErrInfo, err error) {
49 key := path.Join(downloaderErrors, id)
50 if err := db.driver.Get(downloaderCollection, key, &errors); err != nil {
51 if !dbdriver.IsErrNotFound(err) {
52 glog.Error(err)
53 return nil, err
54 }
55 // If there was nothing in DB, return only values in the cache
56 return db.errCache[id], nil
57 }
58
59 errors = append(errors, db.errCache[id]...)
60 return
61}
62
63func (db *downloaderDB) getErrors(id string) (errors []TaskErrInfo, err error) {
64 db.mtx.RLock()

Callers 3

getErrorsMethod · 0.95
persistErrorMethod · 0.95
flushMethod · 0.95

Calls 4

IsErrNotFoundFunction · 0.92
ErrorFunction · 0.92
JoinMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected