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

Lock transactions (make them threadsafe) #77

Merged
merged 1 commit into from
Jul 22, 2024
Merged

Conversation

halgari
Copy link
Contributor

@halgari halgari commented Jul 22, 2024

Transactions have lists of datoms and entities to write to storage, and these structures are not threadsafe. This PR simply adds a lock around each method to serialize additions to a transaction.

@halgari halgari changed the title lock-transactions Lock transactions (make them threadsafe) Jul 22, 2024
@halgari halgari merged commit 46843c5 into main Jul 22, 2024
4 checks passed
@halgari halgari deleted the lock-transactions branch July 22, 2024 19:54
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