cultcache-py: the replace docstring says absence to a reader is rare on NTFS, not impossible
All checks were successful
CultMesh portability and performance / ubuntu-latest reactive semantics and leases (pull_request) Successful in 21m25s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Libby 2026-11-12 23:06:29 +00:00
commit 5600eb3a99

View file

@ -365,7 +365,8 @@ class ReplaceKernel:
def _replace_store(staged: str | os.PathLike[str], destination: str | os.PathLike[str]) -> None:
"""Replaces `destination` with `staged`: POSIX-semantics rename first on Windows (so a reader holding the store open
never sees it absent), os.replace elsewhere."""
keeps it and rarely sees it absent; a stalled rename can still leave it absent for 5-47 ms on NTFS,
variants:ruling:posix-rename-absent-window-document), os.replace elsewhere."""
if sys.platform == "win32":
replace_store_windows(os.fspath(staged), os.fspath(destination), WindowsReplaceKernel())
else: