Browse Source

return dir assign counter

fix https://github.com/seaweedfs/seaweedfs/issues/5231
pull/5637/head
chrislu 11 months ago
parent
commit
d4e66cc140
  1. 1
      weed/topology/volume_layout.go

1
weed/topology/volume_layout.go

@ -331,6 +331,7 @@ func (vl *VolumeLayout) PickForWrite(count uint64, option *VolumeGrowOption) (vi
if float64(info.Size) > float64(vl.volumeSizeLimit)*option.Threshold() { if float64(info.Size) > float64(vl.volumeSizeLimit)*option.Threshold() {
shouldGrow = true shouldGrow = true
} }
counter = count
return return
} }
} }

Loading…
Cancel
Save