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 corruption of freelist during compaction #6054

Merged
merged 3 commits into from
Nov 22, 2022
Merged

Fix corruption of freelist during compaction #6054

merged 3 commits into from
Nov 22, 2022

Conversation

jedelbo
Copy link
Contributor

@jedelbo jedelbo commented Nov 22, 2022

What, How & Why?

Wrong value for the size of the top array was used because values were added after the sizes were calculated. Now the decision to compact the realm is moved to a point before the sizes are calculated so that the correct top array size is used. The reason for moving the logic to the point after the calculation of the sizes was to use an updated values for the free space size - mostly in order to get a test passing, but that was obviously a wrong decision.

☑️ ToDos

  • 📝 Changelog update
  • 🚦 Tests (or not relevant)
  • C-API, if public C++ API changed.

@cla-bot cla-bot bot added the cla: yes label Nov 22, 2022
@jedelbo jedelbo merged commit f68cf2e into master Nov 22, 2022
@jedelbo jedelbo deleted the je/fix-compact branch November 22, 2022 13:12
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants