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:47:31 -0800 |
| commit | d4e66cc1402499742c8f9f552cb49f0ad2c35c3c (patch) | |
| tree | dbc73a7ca9b7faa63a717a11032d0c46fac2f410 | |
| parent | a8ddbf9ed2cebe2cafc518a1e7269a94f8332106 (diff) | |
| download | seaweedfs-d4e66cc1402499742c8f9f552cb49f0ad2c35c3c.tar.xz seaweedfs-d4e66cc1402499742c8f9f552cb49f0ad2c35c3c.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 } } |
