Skip to content

[Merged by Bors] - Correctly update range status when outdated chains are removed#2827

Closed
divagant-martian wants to merge 2 commits intosigp:unstablefrom
divagant-martian:sync-dbg-panic-2
Closed

[Merged by Bors] - Correctly update range status when outdated chains are removed#2827
divagant-martian wants to merge 2 commits intosigp:unstablefrom
divagant-martian:sync-dbg-panic-2

Conversation

@divagant-martian
Copy link
Contributor

We were batch removing chains when purging, and then updating the status of the collection for each of those. This makes the range status be out of sync with the real status. This represented no harm to the global sync status, but I've changed it to comply with a correct debug assertion that I got triggered while doing some testing.
Also added tests and improved code quality as per @paulhauner 's suggestions.

Copy link
Member

@AgeManning AgeManning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me

@AgeManning AgeManning added the ready-for-merge This PR is ready to merge. label Nov 26, 2021
@AgeManning
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Nov 26, 2021
We were batch removing chains when purging, and then updating the status of the collection for each of those. This makes the range status be out of sync with the real status. This represented no harm to the global sync status, but I've changed it to comply with a correct debug assertion that I got triggered while doing some testing.
Also added tests and improved code quality as per @paulhauner 's suggestions.
@bors
Copy link

bors bot commented Nov 26, 2021

@bors bors bot changed the title Correctly update range status when outdated chains are removed [Merged by Bors] - Correctly update range status when outdated chains are removed Nov 26, 2021
@bors bors bot closed this Nov 26, 2021
@divagant-martian divagant-martian deleted the sync-dbg-panic-2 branch December 27, 2021 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge This PR is ready to merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants