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

server: restore separate connections for the local state db #29

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

creachadair
Copy link
Member

In #25 I switched away from using a transaction for queries on the local state
database, because it did not interact properly with the queryable interface we
added in #24. But because I'd switched away from having a separate read-only
connection for these queries, this had the undesirable side-effect of allowing
write queries on the local state database.

Switch back to using a separate read-only connection for local state. Morally
this is a partial revert of #24, but done in a slightly different way.

In #25 I switched away from using a transaction for queries on the local state
database, because it did not interact properly with the queryable interface we
added in #24. But because I'd switched away from having a separate read-only
connection for these queries, this had the undesirable side-effect of allowing
write queries on the local state database.

Switch back to using a separate read-only connection for local state.  Morally
this is a partial revert of #24, but done in a slightly different way.
@creachadair creachadair requested a review from danderson August 1, 2024 04:25
@creachadair creachadair merged commit 938e5f4 into main Aug 1, 2024
1 check passed
@creachadair creachadair deleted the mjf/local-state branch August 1, 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.

2 participants