From 834210a9dc05b8b0a4cc62a0d2d4e2a19804e17b Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> Date: Thu, 10 Mar 2022 15:24:45 +0500 Subject: [PATCH] avoid connect to the old filler address https://github.com/chrislusf/seaweedfs/issues/2545 --- weed/filer/meta_aggregator.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/weed/filer/meta_aggregator.go b/weed/filer/meta_aggregator.go index 1e8b89ad5..83c8a945d 100644 --- a/weed/filer/meta_aggregator.go +++ b/weed/filer/meta_aggregator.go @@ -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) } }