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

for now, add duplicate stale refs to the keep set #353

Merged
merged 6 commits into from
Sep 29, 2023

Conversation

whyrusleeping
Copy link
Collaborator

if a deleted block matches multiple blockRefs in a given repo, we can't safely assume its no longer referenced. The 'correct' way to move forward is to do a full repo traversal to enumerate the 'correct' set of blocks referenced in the MST, but that requires more thought and is actually something that needs to be done at the repo manager level (and involves extra locking and other shenanigans that i dont want to implement just yet).

So for now, we add duplicate blocks to the keep set and just assume they are still being referenced somewhere.

@whyrusleeping whyrusleeping force-pushed the feat/dupe-compact-workaround branch from 7a2f105 to c764642 Compare September 28, 2023 18:37
@whyrusleeping
Copy link
Collaborator Author

something wonky with this, ends up with missing blocks sometimes.. need to investigate

@whyrusleeping whyrusleeping force-pushed the feat/dupe-compact-workaround branch from 9828ac8 to fedc32e Compare September 29, 2023 17:10
@whyrusleeping whyrusleeping force-pushed the feat/dupe-compact-workaround branch from fedc32e to 9cd7059 Compare September 29, 2023 17:31
Copy link
Collaborator

@ericvolp12 ericvolp12 left a comment

Choose a reason for hiding this comment

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

sure

@whyrusleeping whyrusleeping merged commit b6da8c8 into main Sep 29, 2023
6 checks passed
@whyrusleeping whyrusleeping deleted the feat/dupe-compact-workaround branch September 29, 2023 23:56
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