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 (atree inlining feature branch) #396

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.
@fxamacker fxamacker self-assigned this Apr 26, 2024
@fxamacker fxamacker changed the title Fix GetAllChildReferences used by migration filter (atree inlining feature branch) Fix migration filter for old unreferenced slabs (atree inlining feature branch) Apr 26, 2024
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.

👍

Great work as always on the extensive tests 👏

Copy link
Contributor

@ramtinms ramtinms left a comment

Choose a reason for hiding this comment

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

Nice

@fxamacker fxamacker merged commit e4400b2 into feature/array-map-inlining Apr 29, 2024
7 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