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

Method GetTarget

cluster/map.go:357–363  ·  view source on GitHub ↗
(sid string)

Source from the content-addressed store, hash-verified

355}
356
357func (m *Smap) GetTarget(sid string) *Snode {
358 tsi, ok := m.Tmap[sid]
359 if !ok {
360 return nil
361 }
362 return tsi
363}
364
365func (m *Smap) IsPrimary(si *Snode) bool {
366 return m.Primary.Equals(si)

Callers 15

parseXactionFromArgsFunction · 0.95
NewTmapMethod · 0.95
GetNodeMethod · 0.95
newTargetMockFunction · 0.80
loadContentMethod · 0.80
makeRecvRequestFuncMethod · 0.80
recvObjRegularMethod · 0.80
daemonXactionCompletionsFunction · 0.80
showMpathHandlerFunction · 0.80
mpathActionFunction · 0.80
isResilverNodeFunction · 0.80
RemoteTargetsMethod · 0.80

Calls

no outgoing calls

Tested by 2

newTargetMockFunction · 0.64