diff options
| author | chrislu <chris.lu@gmail.com> | 2024-01-23 19:47:31 -0800 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-01-23 19:48:42 -0800 |
| commit | 025f8eb37bdd47b71dcc7d8d3f72ae2f16e19c0a (patch) | |
| tree | ec3259edf2f6d99170a4f2399304c883c1bf4ad3 | |
| parent | 49fcb48e04e3b366b1a1d8bcbbaf79788707aca2 (diff) | |
| download | seaweedfs-025f8eb37bdd47b71dcc7d8d3f72ae2f16e19c0a.tar.xz seaweedfs-025f8eb37bdd47b71dcc7d8d3f72ae2f16e19c0a.zip | |
return dir assign counter
fix https://github.com/seaweedfs/seaweedfs/issues/5231
| -rw-r--r-- | weed/topology/volume_layout.go | 1 |
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 } } |
