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

Add imports location lock to serialize non-atomic operations #204

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

kklimonda-cl
Copy link
Contributor

Adding and removing items from the imports location list is currently implemented in a non-atomic way, by first reading a list of items from the server, updating it locally, and sending a new list to the server.

Introduce a (per-resource, per-location) lock to all resources that require modifications of the import list so that those operations are done sequentially.

Closes: #203

Adding and removing items from the imports location list is currently
implemented in a non-atomic way, by first reading a list of items from the
server, updating it locally, and sending a new list to the server.

Introduce a (per-resource, per-location) lock to all resources that require
modifications of the import list so that those operations are done sequentially.
@kklimonda-cl kklimonda-cl merged commit e4bf2a3 into main Dec 13, 2024
3 checks passed
@kklimonda-cl kklimonda-cl deleted the feat-import-locks branch December 13, 2024 08:03
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.

Location imports are not atomic
2 participants