IsInstanceInStateHealthy is used during "filtering" phase to remove undesired instances based on their state.
(s InstanceState)
| 1570 | |
| 1571 | // IsInstanceInStateHealthy is used during "filtering" phase to remove undesired instances based on their state. |
| 1572 | func (op Operation) IsInstanceInStateHealthy(s InstanceState) bool { |
| 1573 | return op&(1<<s) > 0 |
| 1574 | } |
| 1575 | |
| 1576 | // ShouldExtendReplicaSetOnState returns true if given a state of instance |
| 1577 | // that's going to be added to the replica set, for which |
no outgoing calls
no test coverage detected