Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

fix tests

Chris Lu715b199eeb6f
diff --git a/weed/topology/topology.go b/weed/topology/topology.go
index 62332f8056..f5d335be55 100644
--- a/weed/topology/topology.go
+++ b/weed/topology/topology.go
@@ -182,6 +182,9 @@ func (t *Topology) DeleteLayout(collectionName string, rp *super_block.ReplicaPl
return
}
collection.DeleteVolumeLayout(rp, ttl, volumeType)
+ if len(collection.storageType2VolumeLayout.Items()) == 0 {
+ t.DeleteCollection(collectionName)
+ }
}
func (t *Topology) RegisterVolumeLayout(v storage.VolumeInfo, dn *DataNode) {