1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-06-26 12:29:37 +02:00

return dir assign counter

fix https://github.com/seaweedfs/seaweedfs/issues/5231
This commit is contained in:
chrislu 2024-01-23 19:47:31 -08:00
parent 49fcb48e04
commit 025f8eb37b

View file

@ -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
}
}