mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-23 18:49:17 +08:00
Revert "Check ShouldGrowVolumes
before returning error in assign. (#5819)"
This reverts commit d15966ae8e
.
This commit is contained in:
parent
0581ce6096
commit
ebb1c9aec6
@ -84,7 +84,7 @@ func (ms *MasterServer) Assign(ctx context.Context, req *master_pb.AssignRequest
|
||||
|
||||
for time.Now().Sub(startTime) < maxTimeout {
|
||||
fid, count, dnList, shouldGrow, err := ms.Topo.PickForWrite(req.Count, option, vl)
|
||||
if shouldGrow && !vl.HasGrowRequest() && vl.ShouldGrowVolumes(option) {
|
||||
if shouldGrow && !vl.HasGrowRequest() {
|
||||
// if picked volume is almost full, trigger a volume-grow request
|
||||
if ms.Topo.AvailableSpaceFor(option) <= 0 {
|
||||
return nil, fmt.Errorf("no free volumes left for " + option.String())
|
||||
|
Loading…
Reference in New Issue
Block a user