Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

fix(lock): restore timeout=None passthrough in acquire_mixed_batch and acquire_subtree_batch (#2006)

yangxinxin-78ca2cc5837f4
diff --git a/openviking/storage/transaction/lock_manager.py b/openviking/storage/transaction/lock_manager.py
index 515ee3296..bdff74400 100644
--- a/openviking/storage/transaction/lock_manager.py
+++ b/openviking/storage/transaction/lock_manager.py
@@ -150,7 +150,7 @@ class LockManager:
locks_before = set(handle.locks)
success = await self._path_lock.acquire_subtree(
path, handle,
- timeout=timeout if timeout is not None else self._lock_timeout,
+ timeout=timeout,
)
if not success:
await self._path_lock.release_selected(handle, acquired_lock_paths)
@@ -191,12 +191,12 @@ class LockManager:
if is_subtree:
success = await self._path_lock.acquire_subtree(
path, handle,
- timeout=timeout if timeout is not None else self._lock_timeout,
+ timeout=timeout,
)
else:
success = await self._path_lock.acquire_point(
path, handle,
- timeout=timeout if timeout is not None else self._lock_timeout,
+ timeout=timeout,
)
if not success:
await self._path_lock.release_selected(handle, acquired_lock_paths)