Browse Source

fix tests

pull/1794/head
Chris Lu 4 years ago
parent
commit
715b199eeb
  1. 3
      weed/topology/topology.go

3
weed/topology/topology.go

@ -182,6 +182,9 @@ func (t *Topology) DeleteLayout(collectionName string, rp *super_block.ReplicaPl
return return
} }
collection.DeleteVolumeLayout(rp, ttl, volumeType) collection.DeleteVolumeLayout(rp, ttl, volumeType)
if len(collection.storageType2VolumeLayout.Items()) == 0 {
t.DeleteCollection(collectionName)
}
} }
func (t *Topology) RegisterVolumeLayout(v storage.VolumeInfo, dn *DataNode) { func (t *Topology) RegisterVolumeLayout(v storage.VolumeInfo, dn *DataNode) {

Loading…
Cancel
Save