IsInstanceInStateHealthy is used during "filtering" phase to remove undesired instances based on their state.
(s InstanceState)
| 1028 | |
| 1029 | // IsInstanceInStateHealthy is used during "filtering" phase to remove undesired instances based on their state. |
| 1030 | func (op Operation) IsInstanceInStateHealthy(s InstanceState) bool { |
| 1031 | return op&(1<<s) > 0 |
| 1032 | } |
| 1033 | |
| 1034 | // ShouldExtendReplicaSetOnState returns true if given a state of instance that's going to be |
| 1035 | // added to the replica set, the replica set size should be extended by 1 |