Skip to content

Conversation

@camshaft
Copy link
Contributor

@camshaft camshaft commented Jun 21, 2023

Description of changes:

There's a few places in the codebase that pass a u32::MAX watermark to the cursor acquire methods to simply say "try to acquire the most items possible". In the case where all items have been acquired, we still do a load and calculation. This change caps the watermark to the maximum number of items a ring can have to avoid this scenario.

Testing:

I had to update the test harness, which relied on the functionality to force a fetch when passing u32::MAX.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@camshaft camshaft marked this pull request as ready for review June 21, 2023 19:34
@camshaft camshaft merged commit 7843021 into main Jun 21, 2023
@camshaft camshaft deleted the camshaft/cursor-fixes branch June 21, 2023 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants