mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-05-16 21:49:28 +08:00
return dir assign counter
fix https://github.com/seaweedfs/seaweedfs/issues/5231
This commit is contained in:
parent
a8ddbf9ed2
commit
d4e66cc140
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user