bee icon indicating copy to clipboard operation
bee copied to clipboard

fix: reserve size to return chunks with po greater than and equal to storage radius

Open istae opened this issue 3 years ago • 0 comments

Checklist

  • [x] I have read the coding guide.
  • [ ] My change requires a documentation update, and I have done it.
  • [ ] My change requires updating the Open API specification and/or changing its version, and I've done it.
  • [x] I have added tests to cover my changes.
  • [x] I have filled out the description and linked the related issues.

Description

When the depthmonitor changes the storage radius, this does not automatically alter the radius that the localstore keeps in it's reserve, so the ReserveSize does not return an accurate number. With this PR, we iterate on the pull index to manually count all chunks whose PO is greater than or equal to the storage radius.

Motivation and context (Optional)

Related Issue (Optional)

Screenshots (if appropriate):


This change is Reviewable

istae avatar Sep 21 '22 23:09 istae