From d4e66cc1402499742c8f9f552cb49f0ad2c35c3c Mon Sep 17 00:00:00 2001 From: chrislu Date: Tue, 23 Jan 2024 19:47:31 -0800 Subject: [PATCH] return dir assign counter fix https://github.com/seaweedfs/seaweedfs/issues/5231 --- weed/topology/volume_layout.go | 1 + 1 file changed, 1 insertion(+) diff --git a/weed/topology/volume_layout.go b/weed/topology/volume_layout.go index 1f7511cc7..6b5d0b8da 100644 --- a/weed/topology/volume_layout.go +++ b/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() { shouldGrow = true } + counter = count return } }