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
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:
parent
af982659bd
commit
5600eb3a99
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue