|
|
@ -206,7 +206,7 @@ func (t *Topology) RegisterVolumeLayout(v storage.VolumeInfo, dn *DataNode) { |
|
|
vl.EnsureCorrectWritables(&v) |
|
|
vl.EnsureCorrectWritables(&v) |
|
|
} |
|
|
} |
|
|
func (t *Topology) UnRegisterVolumeLayout(v storage.VolumeInfo, dn *DataNode) { |
|
|
func (t *Topology) UnRegisterVolumeLayout(v storage.VolumeInfo, dn *DataNode) { |
|
|
glog.Infof("removing volume info: %+v", v) |
|
|
|
|
|
|
|
|
glog.Infof("removing volume info: %+v from %v", v, dn.id) |
|
|
diskType := types.ToDiskType(v.DiskType) |
|
|
diskType := types.ToDiskType(v.DiskType) |
|
|
volumeLayout := t.GetVolumeLayout(v.Collection, v.ReplicaPlacement, v.Ttl, diskType) |
|
|
volumeLayout := t.GetVolumeLayout(v.Collection, v.ReplicaPlacement, v.Ttl, diskType) |
|
|
volumeLayout.UnRegisterVolume(&v, dn) |
|
|
volumeLayout.UnRegisterVolume(&v, dn) |
|
|
|