Skip to content

Make transactions inactive during clone #310

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

Merged
merged 2 commits into from
Nov 26, 2019
Merged

Make transactions inactive during clone #310

merged 2 commits into from
Nov 26, 2019

Conversation

inexorabletash
Copy link
Member

@inexorabletash inexorabletash commented Nov 20, 2019

To avoid side effects from getters during cloning operations (part of put/add/update calls), make transactions temporarily inactive.

Implementation commitment:


Preview | Diff

@inexorabletash
Copy link
Member Author

@asutherland - please take a look?

Copy link
Collaborator

@asutherland asutherland left a comment

Choose a reason for hiding this comment

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

Thanks! This is a great sanity-inducing invariant! (Or at least, not an insanity-inducing one, it may not be possible to induce sanity... :)

I've filed https://bugzilla.mozilla.org/show_bug.cgi?id=1598164 for us to implement. Since it's pretty low-hanging fruit and we've got more developer bandwidth in IDB currently, we're likely to get to it soon.

@inexorabletash inexorabletash merged commit 95d8712 into master Nov 26, 2019
@inexorabletash inexorabletash deleted the txclone branch January 22, 2020 20:30
inexorabletash added a commit that referenced this pull request Feb 1, 2021
To avoid side effects from getters during cloning operations (part of put/add/update calls), make transactions temporarily inactive.

Implemented in Blink, pending implementation in Gecko.
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