MCPcopy Index your code
hub / github.com/cortexproject/cortex / HasReplicationSetChanged

Function HasReplicationSetChanged

pkg/ring/replication_set.go:154–158  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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, ...).
154func 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),

Callers 3

runMethod · 0.92
runMethod · 0.92

Calls 1