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

Method GetNodeNotMaint

cluster/map.go:466–472  ·  view source on GitHub ↗

not nil when present and _not_ in maintenance (compare w/ PresentInMaint)

(sid string)

Source from the content-addressed store, hash-verified

464
465// not nil when present and _not_ in maintenance (compare w/ PresentInMaint)
466func (m *Smap) GetNodeNotMaint(sid string) (si *Snode) {
467 si = m.GetNode(sid)
468 if si != nil && si.IsAnySet(NodeFlagsMaintDecomm) {
469 si = nil
470 }
471 return
472}
473
474// true when present and in maintenance (compare w/ GetNodeNotMaint)
475func (m *Smap) PresentInMaint(si *Snode) (ok bool) {

Callers 6

ListenSmapChangedMethod · 0.80
mustRunRebalanceFunction · 0.80
callerNotifyMethod · 0.80
bcastAsyncICMethod · 0.80
doSyncMethod · 0.80
syncDoneMethod · 0.80

Calls 2

GetNodeMethod · 0.95
IsAnySetMethod · 0.45

Tested by

no test coverage detected