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

Resolves #1936: Reduce unnecessary clears of legacy version space #1937

Merged
merged 1 commit into from Dec 5, 2022

Commits on Dec 5, 2022

  1. Resolves FoundationDB#1936: Reduce unnecessary clears of legacy versi…

    …on space
    
    This reduces the number of unnecessary clears issued during check version by being more precise about when the legacy version subspace is cleared. It will only clear the range now if (1) the store is not new and (2) the store header suggests that any versions in the old store would have been stored in the old space. It introduces a test that validates that the version is cleared if versions were stored in that old subspace and the meta-data is changed to so that versions are no longer stores. That test valdiates that there are fewer range clears now if the range doesn't have to be cleared, but other than that assert, the test asserts pass both before and after the main code changes.
    
    This resolves FoundationDB#1936.
    alecgrieser committed Dec 5, 2022
    Configuration menu
    Copy the full SHA
    72f3391 View commit details
    Browse the repository at this point in the history