Skip to content

Commit a83fb9c

Browse files
committed
Ignore RegisteredTimestamp in HasReplicationSetChangedWithoutStateAndAddress
Signed-off-by: Justin Jung <[email protected]>
1 parent b8016ad commit a83fb9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/ring/replication_set.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,13 @@ func HasReplicationSetChangedWithoutState(before, after ReplicationSet) bool {
147147

148148
// HasReplicationSetChangedWithoutStateAndAddress returns false if two replications sets
149149
// are the same (with possibly different timestamps, instance states and address),
150-
// true if they differ in any other way (number of instances, tokens, zones, ...).
150+
// true if they differ in any other way (number of instances, tokens, or zones).
151151
func HasReplicationSetChangedWithoutStateAndAddress(before, after ReplicationSet) bool {
152152
return hasReplicationSetChangedExcluding(before, after, func(i *InstanceDesc) {
153153
i.Timestamp = 0
154154
i.State = PENDING
155155
i.Addr = ""
156+
i.RegisteredTimestamp = 0
156157
})
157158
}
158159

0 commit comments

Comments
 (0)