duplicated

This commit is contained in:
chrislu
2025-08-23 19:26:47 -07:00
parent 99b303a836
commit d8ae048cb4
-4
View File
@@ -295,10 +295,6 @@ func (vg *VolumeGrowth) findEmptySlotsForOneVolume(topo *Topology, option *Volum
for i, server := range servers {
reservationId, success := server.TryReserveCapacity(option.DiskType, 1)
if !success {
// Failed to reserve on this server, release all previous reservations
for j := 0; j < i; j++ {
servers[j].ReleaseReservedCapacity(reservation.reservationIds[j])
}
return servers, nil, fmt.Errorf("failed to reserve capacity on server %s", server.Id())
}
reservation.reservationIds[i] = reservationId