sync: 鍚屾灞€鍩熺綉鏈€鏂颁唬鐮?(source master @ b69568e4)
This commit is contained in:
1 parent
4f7f07504a
commit
8bc8b0e082
1651 files changed
+278599
-11416
No files matched your search
@@ -103,6 +103,12 @@ def resolve_path_user_id(thread_id: str | None) -> str:
|
||||
return get_effective_user_id()
|
||||
|
||||
|
||||
def remember_thread_owner(thread_id: str, owner: str) -> None:
|
||||
"""Cache a discovered thread owner for subsequent filesystem lookups."""
|
||||
if thread_id and owner and not _is_local_only_thread(thread_id):
|
||||
_cache_put(thread_id, owner)
|
||||
|
||||
|
||||
async def aresolve_path_user_id(thread_id: str | None) -> str:
|
||||
"""Async variant of :func:`resolve_path_user_id` for FastAPI handlers."""
|
||||
if not thread_id or _is_local_only_thread(thread_id):
|
||||
|
||||
Reference in new issue
Block a user