parent
b2e8b1cfb3
commit
5dd658302d
1 changed files with 1 additions and 2 deletions
|
@ -471,11 +471,10 @@ func (n *layer) getLatestObjectsVersions(ctx context.Context, p allObjectParams)
|
||||||
objects = make([]*data.ObjectInfo, 0, p.MaxKeys)
|
objects = make([]*data.ObjectInfo, 0, p.MaxKeys)
|
||||||
|
|
||||||
for obj := range objOutCh {
|
for obj := range objOutCh {
|
||||||
// TODO (@kirillovdenis) : #612, #525 reconsider stop condition
|
// TODO (@kirillovdenis) : #625 #612, #525 reconsider stop condition
|
||||||
// currently we handle 3 more items to reduce the likelihood of missing the last object in batch
|
// currently we handle 3 more items to reduce the likelihood of missing the last object in batch
|
||||||
// (potentially we can miss it because of pool of workers)
|
// (potentially we can miss it because of pool of workers)
|
||||||
if len(objects) == p.MaxKeys+3 {
|
if len(objects) == p.MaxKeys+3 {
|
||||||
//next = obj
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
objects = append(objects, obj)
|
objects = append(objects, obj)
|
||||||
|
|
Loading…
Reference in a new issue