From 025f8eb37bdd47b71dcc7d8d3f72ae2f16e19c0a 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 } }