avoid connect to the old filler address

https://github.com/chrislusf/seaweedfs/issues/2545
This commit is contained in:
Konstantin Lebedev 2022-03-10 15:24:45 +05:00
parent 197ade6aeb
commit 834210a9dc

View file

@ -76,9 +76,6 @@ func (ma *MetaAggregator) setActive(address pb.ServerAddress, isActive bool) (no
}
} else {
if _, found := ma.peerStatues[address]; found {
ma.peerStatues[address] -= 1
}
if ma.peerStatues[address] <= 0 {
delete(ma.peerStatues, address)
}
}