[#2095] node: Fix collecting child objects

Stop child objects collection if the last returned object (the most "left"
object in the collected chain) starts exactly from the `GETRANGE`'s `from`
value.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-11-24 18:27:00 +03:00 committed by Anton Nikiforov
parent 350eecfa13
commit b413094704
3 changed files with 6 additions and 2 deletions

View file

@ -963,7 +963,7 @@ func TestGetRemoteSmall(t *testing.T) {
addr.SetObject(oidtest.ID())
srcObj := generateObject(addr, nil, nil)
srcObj.SetPayloadSize(10)
srcObj.SetPayloadSize(11)
ns, as := testNodeMatrix(t, []int{2})