not nil when present and _not_ in maintenance (compare w/ PresentInMaint)
(sid string)
| 464 | |
| 465 | // not nil when present and _not_ in maintenance (compare w/ PresentInMaint) |
| 466 | func (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) |
| 475 | func (m *Smap) PresentInMaint(si *Snode) (ok bool) { |
no test coverage detected