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 2: make callers responsible for sessions #390

Closed
wants to merge 1 commit into from

Conversation

msm-cert
Copy link
Member

@msm-cert msm-cert commented May 31, 2024

Your checklist for this pull request

  • I've read the contributing guideline.
  • I've tested my changes by building and running mquery, and testing changed functionality (if applicable)
  • I've added automated tests for my change (if applicable, optional)
  • I've updated documentation to reflect my change (if applicable)

Second round of refactoring - move session management out of the database object (to make atomicity easier).

Beware of the dragons, this code has a long history of concurrency bugs. In the previous version, there was an implicit commit all the time... I'm not sure there are no places where i should call .commit() directly, but so far it works in my tests.

@msm-cert
Copy link
Member Author

Refactoring can wait for another day. Currently I have no plans of merging this.

@msm-cert msm-cert closed this Sep 29, 2024
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