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

Adding on_migrated event handler to migratable component instances #2731

Merged
merged 2 commits into from Jul 4, 2017

Conversation

hkaiser
Copy link
Member

@hkaiser hkaiser commented Jun 30, 2017

This fixes #2729


// inform the newly created component that it has been migrated
if (new_instance != nullptr)
new_instance->on_migrated();
Copy link
Member

Choose a reason for hiding this comment

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

I think this should be called before agas::unmark_as_migrated. There could be another migration process invalidating new_instance

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch, thanks.

@hkaiser
Copy link
Member Author

hkaiser commented Jul 3, 2017

@sithhell Your comment has been addressed

Copy link
Member

@sithhell sithhell left a comment

Choose a reason for hiding this comment

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

LGTM

@hkaiser hkaiser merged commit a226213 into master Jul 4, 2017
@hkaiser hkaiser deleted the fixing_2729 branch July 4, 2017 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add on_migrated() event handler to migratable components
2 participants