Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Follow-up from review on PR #554 #572

Merged
merged 5 commits into from
Feb 13, 2025
Merged

Follow-up from review on PR #554 #572

merged 5 commits into from
Feb 13, 2025

Conversation

dcoutts
Copy link
Collaborator

@dcoutts dcoutts commented Feb 13, 2025

Additional post-merge PR review.

Typos and stale / inaccurate comments.
by making it a newtype for UnspentCredits rather than Credits, so when
unwrapping one layer its still compatible with other credit values and
we can perform operations.
We do now check that we do not do too much merging work. But we could
still supply excess credits leading to unexpected leftover credits. Add
TODOs in the right places about asserting there are no leftover credits.

We can't assert this yet because there are in fact leftovers because we
do not spread out merging work fully, in the case that runs are less
than worst case in size.
These are not concurrency safe. The merging runs could complete during
snapshot persistence leading to use after free. Add TODOs to explain
this and to suggest a solution.
And remove a stale comment about non-zero cases and replace it by an
assertion.
@dcoutts dcoutts added this pull request to the merge queue Feb 13, 2025
Merged via the queue into main with commit bd366da Feb 13, 2025
27 checks passed
@dcoutts dcoutts deleted the dcoutts/pr-554-review branch February 13, 2025 16:13
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