mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 09:09:24 +08:00
fix: master lose some volumes
This commit is contained in:
@@ -283,3 +283,14 @@ func (t *Topology) IncrementalSyncDataNodeRegistration(newVolumes, deletedVolume
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
func (t *Topology) DataNodeRegistration(dcName, rackName string ,dn *DataNode){
|
||||
if dn.Parent() != nil{
|
||||
return
|
||||
}
|
||||
// registration to topo
|
||||
dc := t.GetOrCreateDataCenter(dcName)
|
||||
rack := dc.GetOrCreateRack(rackName)
|
||||
rack.LinkChildNode(dn)
|
||||
glog.Infof("[%s] reLink To topo ", dn.Id())
|
||||
}
|
Reference in New Issue
Block a user