Update detection.go
This commit is contained in:
@@ -249,6 +249,11 @@ func planBalanceDestination(activeTopology *topology.ActiveTopology, selectedVol
|
|||||||
bestScore := -1.0
|
bestScore := -1.0
|
||||||
|
|
||||||
for _, disk := range availableDisks {
|
for _, disk := range availableDisks {
|
||||||
|
// Ensure disk type matches
|
||||||
|
if disk.DiskType != selectedVolume.DiskType {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
score := calculateBalanceScore(disk, sourceRack, sourceDC, selectedVolume.Size)
|
score := calculateBalanceScore(disk, sourceRack, sourceDC, selectedVolume.Size)
|
||||||
if score > bestScore {
|
if score > bestScore {
|
||||||
bestScore = score
|
bestScore = score
|
||||||
|
|||||||
Reference in New Issue
Block a user