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

Method PresentInMaint

cluster/map.go:475–478  ·  view source on GitHub ↗

true when present and in maintenance (compare w/ GetNodeNotMaint)

(si *Snode)

Source from the content-addressed store, hash-verified

473
474// true when present and in maintenance (compare w/ GetNodeNotMaint)
475func (m *Smap) PresentInMaint(si *Snode) (ok bool) {
476 node := m.GetNode(si.ID())
477 return node != nil && node.IsAnySet(NodeFlagsMaintDecomm)
478}
479
480func (m *Smap) IsIC(psi *Snode) (ok bool) {
481 node := m.GetProxy(psi.ID())

Callers 8

broadcastTargetsFunction · 0.80
initMethod · 0.80
rmNodeMethod · 0.80
stopMaintenanceMethod · 0.80
cluSetPrimaryMethod · 0.80
hrwProxyTestFunction · 0.80

Calls 3

GetNodeMethod · 0.95
IDMethod · 0.65
IsAnySetMethod · 0.45

Tested by 2

hrwProxyTestFunction · 0.64