Browse Source

Update detection.go

master
Chris Lu 22 hours ago
parent
commit
d3f79d4c38
  1. 5
      weed/worker/tasks/balance/detection.go

5
weed/worker/tasks/balance/detection.go

@ -249,6 +249,11 @@ func planBalanceDestination(activeTopology *topology.ActiveTopology, selectedVol
bestScore := -1.0
for _, disk := range availableDisks {
// Ensure disk type matches
if disk.DiskType != selectedVolume.DiskType {
continue
}
score := calculateBalanceScore(disk, sourceRack, sourceDC, selectedVolume.Size)
if score > bestScore {
bestScore = score

Loading…
Cancel
Save