aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2023-12-24 11:11:41 -0800
committerchrislu <chris.lu@gmail.com>2023-12-24 11:11:41 -0800
commitc6b1dc7058a60c5aa4711fb70bdc7f444478e8d6 (patch)
treeb0e4a796885681fd99de09c5ea910e480962f855
parent838578b55f138d98d9d2b3a0246a7fbb12fd379c (diff)
downloadseaweedfs-c6b1dc7058a60c5aa4711fb70bdc7f444478e8d6.tar.xz
seaweedfs-c6b1dc7058a60c5aa4711fb70bdc7f444478e8d6.zip
remove unused code
-rw-r--r--weed/topology/topology.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/weed/topology/topology.go b/weed/topology/topology.go
index 017208b81..1397a0288 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 {