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

Reduce conflict errors on number generation #2258

Merged
merged 7 commits into from Feb 20, 2023

Conversation

ramonski
Copy link
Contributor

Description of the issue/feature this PR addresses

This PR reduces conflict errors that might occur if multiple threads are requesting new numbers at the same time.

Current behavior before PR

storage was fetched before the lock was acquired

Desired behavior after PR is merged

storage is always fetched from the annotation storage

--
I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.

Copy link
Member

@xispa xispa left a comment

Choose a reason for hiding this comment

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

Good catch, thanks!

@xispa xispa merged commit 56cf077 into 2.x Feb 20, 2023
@xispa xispa deleted the reduce-conflict-errors-on-number-generation branch February 20, 2023 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants