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.

remove unused code

chrisluc6b1dc7058a6
diff --git a/weed/topology/topology.go b/weed/topology/topology.go
index 017208b817..1397a02885 100644
--- a/weed/topology/topology.go
+++ b/weed/topology/topology.go
@@ -201,13 +201,6 @@ func (t *Topology) NextVolumeId() (needle.VolumeId, error) {
return next, nil
}
-// deprecated
-func (t *Topology) HasWritableVolume(option *VolumeGrowOption) bool {
- vl := t.GetVolumeLayout(option.Collection, option.ReplicaPlacement, option.Ttl, option.DiskType)
- active, _ := vl.GetActiveVolumeCount(option)
- return active > 0
-}
-
func (t *Topology) PickForWrite(count uint64, option *VolumeGrowOption) (string, uint64, *VolumeLocationList, error) {
vid, count, datanodes, err := t.GetVolumeLayout(option.Collection, option.ReplicaPlacement, option.Ttl, option.DiskType).PickForWrite(count, option)
if err != nil {