HasReplicationSetChanged returns false if two replications sets are the same (with possibly different timestamps), true if they differ in any way (number of instances, instance states, tokens, zones, ...).
(before, after ReplicationSet)
| 152 | // HasReplicationSetChanged returns false if two replications sets are the same (with possibly different timestamps), |
| 153 | // true if they differ in any way (number of instances, instance states, tokens, zones, ...). |
| 154 | func HasReplicationSetChanged(before, after ReplicationSet) bool { |
| 155 | return hasReplicationSetChangedExcluding(before, after, func(i *InstanceDesc) { |
| 156 | i.Timestamp = 0 |
| 157 | }) |
| 158 | } |
| 159 | |
| 160 | // HasReplicationSetChangedWithoutState returns false if two replications sets |
| 161 | // are the same (with possibly different timestamps and instance states), |