1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

Revert "Assume F_FULLFSYNC on darwin"

This commit is contained in:
Unrud 2022-02-01 20:23:24 +01:00
parent a1a0fdd673
commit 496b629cb4
2 changed files with 1 additions and 2 deletions

View file

@ -4,7 +4,6 @@
* Fallback if RENAME_EXCHANGE is not supportd by the filesystem
* Assume POSIX compatibility if `sys.platform` is not `win32`
* Assume `F_FULLFSYNC` always exists if `sys.platform` is `darwin`
## 3.1.3

View file

@ -193,7 +193,7 @@ def rename_exchange(src: str, dst: str) -> None:
def fsync(fd: int) -> None:
if sys.platform == "darwin":
if sys.platform != "win32" and hasattr(fcntl, "F_FULLFSYNC"):
fcntl.fcntl(fd, fcntl.F_FULLFSYNC)
else:
os.fsync(fd)