forked from TrueCloudLab/frostfs-node
[#1692] metabase: Remove useless count
variable
It is always equal to `len(to)`. Change-Id: Id7a4c26e9711216b78f96e6b2511efa0773e3471 Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
80bd5efe3f
commit
72f0d1e24e
1 changed files with 1 additions and 3 deletions
|
@ -219,7 +219,6 @@ func selectNFromBucket(
|
|||
cursor = new(Cursor)
|
||||
}
|
||||
|
||||
count := len(to)
|
||||
c := bkt.Cursor()
|
||||
k, v := c.First()
|
||||
|
||||
|
@ -231,7 +230,7 @@ func selectNFromBucket(
|
|||
}
|
||||
|
||||
for ; k != nil; k, v = c.Next() {
|
||||
if count >= limit {
|
||||
if len(to) >= limit {
|
||||
break
|
||||
}
|
||||
|
||||
|
@ -275,7 +274,6 @@ func selectNFromBucket(
|
|||
a.SetContainer(cnt)
|
||||
a.SetObject(obj)
|
||||
to = append(to, objectcore.Info{Address: a, Type: objType, IsLinkingObject: isLinkingObj, ECInfo: ecInfo})
|
||||
count++
|
||||
}
|
||||
|
||||
return to, offset, cursor, nil
|
||||
|
|
Loading…
Add table
Reference in a new issue