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

Function initManager

ec/manager.go:49–69  ·  view source on GitHub ↗
(t cluster.Target)

Source from the content-addressed store, hash-verified

47)
48
49func initManager(t cluster.Target) error {
50 var (
51 netReq, netResp = cmn.NetIntraControl, cmn.NetIntraData
52 sowner = t.Sowner()
53 smap = sowner.Get()
54 )
55 ECM = &Manager{
56 netReq: netReq,
57 netResp: netResp,
58 t: t,
59 smap: smap,
60 targetCnt: *atomic.NewInt32(int32(smap.CountActiveTargets())),
61 bmd: t.Bowner().Get(),
62 xacts: make(map[string]*BckXacts),
63 }
64
65 if ECM.bmd.IsECUsed() {
66 return ECM.initECBundles()
67 }
68 return nil
69}
70
71func (mgr *Manager) req() *bundle.Streams {
72 return (*bundle.Streams)(mgr.reqBundle.Load())

Callers 1

InitFunction · 0.85

Calls 7

NewInt32Function · 0.92
CountActiveTargetsMethod · 0.80
IsECUsedMethod · 0.80
initECBundlesMethod · 0.80
SownerMethod · 0.65
GetMethod · 0.65
BownerMethod · 0.65

Tested by

no test coverage detected