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 move of resource dictionary value #132

Merged
merged 2 commits into from
May 24, 2020

Conversation

turbolent
Copy link
Member

@turbolent turbolent commented May 23, 2020

We already handled the move/transfer of dictionaries with deferred values by moving the the deferred storage keys.

However, we also have to handle the move/transfer of a dictionary value from one dictionary to another: If the value is not modified, the writeback optimization will ignore the new value in the receiving dictionary, so mark the moved/transferred value as modified.

@turbolent turbolent self-assigned this May 23, 2020
// so must be written (potentially as a deferred value again),
// and would otherwise be ignored by the writeback optimization.

value.SetModified(true)
Copy link
Member

Choose a reason for hiding this comment

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

noice

Copy link
Contributor

@psiemens psiemens left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Base automatically changed from bastian/fix-resource-dictionary-value-deferral-destruction to master May 24, 2020 00:52
@turbolent turbolent force-pushed the bastian/fix-resource-dictionary-value-deferral branch from 3fe40e2 to 64dd3d9 Compare May 24, 2020 00:53
@turbolent turbolent merged commit 8713042 into master May 24, 2020
@turbolent turbolent deleted the bastian/fix-resource-dictionary-value-deferral branch May 24, 2020 00:55
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.

3 participants