forked from TrueCloudLab/frostfs-node
[#1211] innerring: Fix objectIDs list reader
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
6d3e626f20
commit
ca17eb0eb4
1 changed files with 3 additions and 4 deletions
|
@ -81,14 +81,13 @@ func (x Client) SearchSG(prm SearchSGPrm) (*SearchSGRes, error) {
|
|||
|
||||
for {
|
||||
n, ok = rdr.Read(buf)
|
||||
if !ok {
|
||||
break
|
||||
}
|
||||
|
||||
for i := 0; i < n; i++ {
|
||||
v := buf[i]
|
||||
list = append(list, &v)
|
||||
}
|
||||
if !ok {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
res, err := rdr.Close()
|
||||
|
|
Loading…
Reference in a new issue