mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Don't reuse cache locks between instances of class
This commit is contained in:
parent
ae4c8a0bd1
commit
6e73a1bebf
1 changed files with 4 additions and 3 deletions
|
@ -761,6 +761,10 @@ class Collection(BaseCollection):
|
|||
"storage", "filesystem_close_lock_file")
|
||||
cls._lock = FileBackedRwLock(lock_path, close_lock_file)
|
||||
|
||||
# init cache lock
|
||||
cls._cache_locks = {}
|
||||
cls._cache_locks_lock = threading.Lock()
|
||||
|
||||
def __init__(self, path, principal=None, folder=None,
|
||||
filesystem_path=None):
|
||||
# DEPRECATED: Remove principal and folder attributes
|
||||
|
@ -1309,9 +1313,6 @@ class Collection(BaseCollection):
|
|||
pass
|
||||
return content
|
||||
|
||||
_cache_locks = {}
|
||||
_cache_locks_lock = threading.Lock()
|
||||
|
||||
@contextmanager
|
||||
def _acquire_cache_lock(self, ns=""):
|
||||
if "/" in ns:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue