mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-08-19 05:36:58 +00:00
duplicated
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user