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

refactor: Use a single transaction for all remote mediator operations #1256

Merged
merged 2 commits into from
Feb 1, 2025

Conversation

nikclayton
Copy link
Contributor

Previous code used a transaction for updates to the database, but didn't do the earlier reads in the same transaction. Theoretically this could race.

Guard against this by using a single transaction for a complete remote mediator operation (refresh, prepend, append).

Previous code used a transaction for updates to the database, but didn't
do the earlier reads in the same transaction. Theoretically this could
race.

Guard against this by using a single transaction for a complete
remote mediator operation (refresh, prepend, append).
@nikclayton nikclayton merged commit ecb0f7c into pachli:main Feb 1, 2025
24 checks passed
@nikclayton nikclayton deleted the move-transaction-provider-call branch February 1, 2025 18:59
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.

1 participant