mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-07 06:47:51 +02:00
Update detection.go
This commit is contained in:
1 parent
6394e2f6a5
commit
d3f79d4c38
1 file changed
+5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user