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(transaction): avoid unnecessarily updating initial state in between transactions #14875

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

vkarpov15
Copy link
Collaborator

@vkarpov15 vkarpov15 commented Sep 10, 2024

Summary

Updating initial state on every save seems like incorrect behavior, since the idea of "initial state" is that is the state we should restore the document to if transaction fails.

Fix #14848

Examples

Copy link
Collaborator

@hasezoey hasezoey left a comment

Choose a reason for hiding this comment

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

LGTM

@vkarpov15 vkarpov15 merged commit 286ab98 into master Sep 10, 2024
46 checks passed
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-14848 branch September 10, 2024 14:14
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.

Array addToSet() and push() methods do not work with transaction retries
2 participants