Browse Source

weed/server: fix dropped error (#8584)

* weed/server: fix dropped error

* Removed the redundant check.

---------

Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
Co-authored-by: Chris Lu <chris.lu@gmail.com>
pull/8594/head
Lars Lehtonen 4 days ago
committed by GitHub
parent
commit
f8b7357350
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      weed/server/master_grpc_server_volume.go

4
weed/server/master_grpc_server_volume.go

@ -381,10 +381,6 @@ func (ms *MasterServer) VolumeGrow(ctx context.Context, req *master_pb.VolumeGro
return nil, fmt.Errorf("only %d volumes left, not enough for %d", ms.Topo.AvailableSpaceFor(&volumeGrowOption), replicaCount)
}
if !ms.Topo.DataCenterExists(volumeGrowOption.DataCenter) {
err = fmt.Errorf("data center %v not found in topology", volumeGrowOption.DataCenter)
}
ms.DoAutomaticVolumeGrow(&volumeGrowRequest)
return &master_pb.VolumeGrowResponse{}, nil

Loading…
Cancel
Save