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

Release the read lock in a finally block #703

Merged
merged 1 commit into from
Oct 16, 2022
Merged

Release the read lock in a finally block #703

merged 1 commit into from
Oct 16, 2022

Conversation

essobedo
Copy link
Contributor

@essobedo essobedo commented Oct 4, 2022

Motivation

In case of an error, the read lock is never released which would prevent subsequent write locks.

Modifications:

  • Release the read lock in a finally block to ensure that it will be released in any case.

@gnodet gnodet merged commit e1e5c08 into apache:master Oct 16, 2022
@gnodet gnodet added this to the 0.8.3 milestone Oct 16, 2022
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.

None yet

2 participants