KEMBAR78
Make transactions inactive during clone by inexorabletash · Pull Request #310 · w3c/IndexedDB · GitHub
Skip to content

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