From 3ee543339712e8d6f105430299c6408ab89e8234 Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Fri, 28 Mar 2025 07:35:15 +0100 Subject: [PATCH] use proper cache location for lock --- radicale/storage/multifilesystem/lock.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radicale/storage/multifilesystem/lock.py b/radicale/storage/multifilesystem/lock.py index 1e25daee..6e5489ef 100644 --- a/radicale/storage/multifilesystem/lock.py +++ b/radicale/storage/multifilesystem/lock.py @@ -38,10 +38,11 @@ class CollectionPartLock(CollectionBase): if self._storage._lock.locked == "w": yield return - cache_folder = os.path.join(self._filesystem_path, ".Radicale.cache") + cache_folder = self._storage._get_collection_cache_subfolder(self._filesystem_path, ".Radicale.cache", ns) self._storage._makedirs_synced(cache_folder) lock_path = os.path.join(cache_folder, ".Radicale.lock" + (".%s" % ns if ns else "")) + logger.debug("Lock file (CollectionPartLock): %r" % lock_path) lock = pathutils.RwLock(lock_path) with lock.acquire("w"): yield