Skip to content

Commit

Permalink
node/get_range: Range big objects correctly
Browse files Browse the repository at this point in the history
Not clear at all how that happened. Seems like a hotfix after some review or
smth.

Signed-off-by: Pavel Karpy <[email protected]>
  • Loading branch information
carpawell committed Mar 21, 2024
1 parent 4df04d3 commit 124a991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/services/object/get/assembly_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (exec *execCtx) rangeFromLink(link objectSDK.Link) bool {
rngPerChild.SetOffset(uint64(firstOffset))
}
if i == last {
rngPerChild.SetLength(uint64(child.ObjectSize()) - uint64(lastBound+firstOffset))
rngPerChild.SetLength(uint64(lastBound - firstOffset))

Check warning on line 119 in pkg/services/object/get/assembly_v2.go

View check run for this annotation

Codecov / codecov/patch

pkg/services/object/get/assembly_v2.go#L119

Added line #L119 was not covered by tests
}
}

Expand Down

0 comments on commit 124a991

Please sign in to comment.