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: transaction internals #5437

Merged
merged 1 commit into from
Nov 15, 2023
Merged

refactor: transaction internals #5437

merged 1 commit into from
Nov 15, 2023

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Nov 15, 2023

this changes the transaction internals to make it actually send+sync

  • removed all Rc and raw mutex
  • TransactionPtr synchronizes raw pointer access at all times

it now could actually be made Clone if we refactor it a bit more

I believe this can be made a bit nicer so we guarantee drop is called when the txn pointer drops, but would tackle this in a followup, maybe even get rid of the Kind traits

@mattsse mattsse requested review from rkrasiuk and removed request for rakita and joshieDo November 15, 2023 14:10
@mattsse mattsse added the C-debt A clean up/refactor of existing code label Nov 15, 2023
@mattsse mattsse requested a review from DaniPopes November 15, 2023 14:15
@rkrasiuk rkrasiuk added the A-db Related to the database label Nov 15, 2023
Copy link
Member

@rkrasiuk rkrasiuk left a comment

Choose a reason for hiding this comment

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

good job, now it's actually Sync

@mattsse mattsse added this pull request to the merge queue Nov 15, 2023
Merged via the queue into main with commit de0cca2 Nov 15, 2023
@mattsse mattsse deleted the matt/refactor-transaction branch November 15, 2023 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-db Related to the database C-debt A clean up/refactor of existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants