aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/filer.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-05-30 16:28:36 -0700
committerchrislu <chris.lu@gmail.com>2022-05-30 16:28:36 -0700
commitc59068d0f30722c731f39eaab0c08588a8b58a13 (patch)
tree17e3807c6139e2b52365d59adbb1fd8d95a54b97 /weed/filer/filer.go
parent682382648e36ee7228c2ca630a976e92bf9aa84d (diff)
downloadseaweedfs-c59068d0f30722c731f39eaab0c08588a8b58a13.tar.xz
seaweedfs-c59068d0f30722c731f39eaab0c08588a8b58a13.zip
refactor
Diffstat (limited to 'weed/filer/filer.go')
-rw-r--r--weed/filer/filer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer/filer.go b/weed/filer/filer.go
index bbe22e105..73ab3022f 100644
--- a/weed/filer/filer.go
+++ b/weed/filer/filer.go
@@ -68,12 +68,12 @@ func NewFiler(masters map[string]pb.ServerAddress, grpcDialOption grpc.DialOptio
return f
}
-func (f *Filer) AggregateFromPeers(self pb.ServerAddress) {
+func (f *Filer) AggregateFromPeers(self pb.ServerAddress, existingNodes []*master_pb.ClusterNodeUpdate) {
f.MetaAggregator = NewMetaAggregator(f, self, f.GrpcDialOption)
f.MasterClient.OnPeerUpdate = f.MetaAggregator.OnPeerUpdate
- for _, peerUpdate := range f.ListExistingPeerUpdates() {
+ for _, peerUpdate := range existingNodes {
f.MetaAggregator.OnPeerUpdate(peerUpdate)
}