aboutsummaryrefslogtreecommitdiff
path: root/weed/topology/volume_layout.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2024-01-23 19:47:31 -0800
committerchrislu <chris.lu@gmail.com>2024-01-23 19:48:42 -0800
commit025f8eb37bdd47b71dcc7d8d3f72ae2f16e19c0a (patch)
treeec3259edf2f6d99170a4f2399304c883c1bf4ad3 /weed/topology/volume_layout.go
parent49fcb48e04e3b366b1a1d8bcbbaf79788707aca2 (diff)
downloadseaweedfs-025f8eb37bdd47b71dcc7d8d3f72ae2f16e19c0a.tar.xz
seaweedfs-025f8eb37bdd47b71dcc7d8d3f72ae2f16e19c0a.zip
return dir assign counter
fix https://github.com/seaweedfs/seaweedfs/issues/5231
Diffstat (limited to 'weed/topology/volume_layout.go')
-rw-r--r--weed/topology/volume_layout.go1
1 files changed, 1 insertions, 0 deletions
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
}
}