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

CBG-1076: Ensure pruning of tombstoned branches #4802

Merged
merged 2 commits into from Sep 28, 2020
Merged

CBG-1076: Ensure pruning of tombstoned branches #4802

merged 2 commits into from Sep 28, 2020

Conversation

JRascagneres
Copy link
Member

@JRascagneres JRascagneres commented Sep 25, 2020

Previously behaviour was to exit out if the maximum depth (as calculated in computeDepthsAndFindLeaves) was less than the allowed maximum depth as set through revs_limit. However, this would mean that no processing would be done to find tombstoned branches such as disconnected ones referenced in this ticket.
Altered this to ensure this always runs and have added a test to ensure this is the case.

For reference:

Revtree (prior to fix prune wouldn't alter this):
image

Revtree after prune:

image

@coveralls
Copy link

coveralls commented Sep 25, 2020

Coverage Status

Coverage decreased (-0.006%) to 65.166% when pulling 01a0a32 on CBG-1076 into 991d6a5 on master.

db/document_test.go Outdated Show resolved Hide resolved
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.

None yet

3 participants