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

Method Start

xs/multiobj.go:298–312  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

296}
297
298func (p *prfFactory) Start() error {
299 b := p.Bck
300 if err := b.Init(p.Args.T.Bowner()); err != nil {
301 if cmn.IsErrRemoteBckNotFound(err) {
302 glog.Warning(err) // may show up later via ais/prxtrybck.go logic
303 } else {
304 return err
305 }
306 } else if b.IsAIS() {
307 glog.Errorf("bucket %q: can only prefetch remote buckets", b)
308 return fmt.Errorf("bucket %q: can only prefetch remote buckets", b)
309 }
310 p.xctn = newPrefetch(&p.Args, p.Kind(), p.Bck, p.msg)
311 return nil
312}
313
314func (*prfFactory) Kind() string { return apc.ActPrefetchObjects }
315func (p *prfFactory) Get() cluster.Xact { return p.xctn }

Callers

nothing calls this directly

Calls 8

KindMethod · 0.95
IsErrRemoteBckNotFoundFunction · 0.92
WarningFunction · 0.92
ErrorfFunction · 0.92
newPrefetchFunction · 0.85
InitMethod · 0.65
BownerMethod · 0.65
IsAISMethod · 0.45

Tested by

no test coverage detected