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

Fix duplicate calls of mainStorage.lock() in LockManager #166

Merged
merged 3 commits into from
Jul 12, 2024
Merged

Conversation

RKrahl
Copy link
Member

@RKrahl RKrahl commented Jul 10, 2024

  • store the storage lock in class LockEntry rather than in class SingleLock,
  • as a consequence: obtain only one storage lock when mutliple shared locks are requested on the same dataset,
  • release the storage lock when the lock count drops to zero, e.g. when the last lock on the dataset is closed.

This fixes #164.

- store the storage lock in class LockEntry rather than in class
  SingleLock,
- as a consequence: obtain only one storage lock when mutliple shared
  locks are requested on the same dataset,
- release the storage lock when the lock count drops to zero,
  e.g. when the last lock on the dataset is closed.
@RKrahl RKrahl added the bug Something isn't working label Jul 10, 2024
@RKrahl RKrahl added this to the 2.1.1 milestone Jul 10, 2024
@RKrahl RKrahl merged commit 8209b3a into master Jul 12, 2024
2 checks passed
@RKrahl RKrahl deleted the lockmanager branch July 12, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trying to acquire a shared dataset lock may cause OverlappingFileLockException
1 participant