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

Fix region tracker page leak and initial sizing #884

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

mconst
Copy link
Contributor

@mconst mconst commented Nov 1, 2024

When allocating a new region tracker, we need to free the old one. Also, when recreating the region tracker during repair, it has to be large enough for the actual number of regions (which might be more than INITIAL_REGIONS).

I've expanded the existing out_of_regions() test case to exercise both of these code paths; the test will fail without these fixes.

When allocating a new region tracker, we need to free the old one.
Also, when recreating the region tracker during repair, it has to be
large enough for the actual number of regions (which might be more
than INITIAL_REGIONS).
@cberner
Copy link
Owner

cberner commented Nov 1, 2024

Nice find, thanks for the fixes!

@cberner cberner merged commit e413256 into cberner:master Nov 1, 2024
3 checks passed
@mconst mconst deleted the region_tracker_fixes branch November 1, 2024 03:59
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