Merge pull request #1402 from prometheus/fabxc/target-identity

Use fingerprint for target identity comparison
This commit is contained in:
Brian Brazil 2016-02-17 15:37:10 +00:00
commit b447002309

View file

@ -265,7 +265,7 @@ func (tm *TargetManager) updateTargetGroup(tgroup *config.TargetGroup, cfg *conf
if told == nil {
continue
}
if tnew.InstanceIdentifier() == told.InstanceIdentifier() {
if tnew.fingerprint() == told.fingerprint() {
match = told
oldTargets[j] = nil
break