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 migration filter for old unreferenced slabs (non-inlining feature branch) #399

Conversation

fxamacker
Copy link
Member

Closes #395

Recently, migration programs in onflow/flow-go added a flag to filter out old unreferenced slabs and onflow/atree added some functions to support that. However, some of the old unreferenced slabs are not filtered.

This issue only affects this new migration feature in onflow/flow-go:

This PR fixes the migration filter by handling nested storage ID inside element such as Cadence SomeValue.


  • Targeted PR against main branch
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work
  • Code follows the standards mentioned here
  • Updated relevant documentation
  • Re-reviewed Files changed in the Github PR explorer
  • Added appropriate labels

Migration programs in onflow/flow-go added a flag to filter
old unreferenced slabs and onflow/atree added some functions
to support that. However, some of the old unreferenced slabs
are not filtered during migration.

This commit fixes the migration filter by handling nested
storage ID inside element such as Cadence SomeValue.
Copy link
Member

@turbolent turbolent left a comment

Choose a reason for hiding this comment

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

👍

@fxamacker fxamacker changed the base branch from fxamacker/traverse-deeper-in-slab-iterator to feature/stable-cadence April 29, 2024 17:12
@fxamacker fxamacker merged commit cb486ce into feature/stable-cadence Apr 29, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants