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

Transaction.abort does not rollback changes #1329

Merged
merged 2 commits into from Jun 6, 2021

Conversation

mushishi78
Copy link
Contributor

I've written a test to demonstrate. The documentation here states that abort // Will discard all changes, but it doesn't seem to for me. I ran this is chrome.

Check that changes don't get written to disk if the transaction is aborted
@dfahlander
Copy link
Collaborator

Thanks! I'll look into it soon!

dfahlander added a commit that referenced this pull request Jun 5, 2021
dfahlander added a commit that referenced this pull request Jun 6, 2021
@dfahlander
Copy link
Collaborator

We should have had this test long time before.

@dfahlander dfahlander merged commit e586532 into dexie:master Jun 6, 2021
@mushishi78
Copy link
Contributor Author

Thanks for looking into it so fast 😅

@dfahlander
Copy link
Collaborator

It was important to fix, and a perfect repro. I tried your repro on previous version and the bug has been there for ages. I'm a bit surprised no one has found it earlier but maybe people have just thrown an error instead to work around it.

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.

None yet

2 participants