Skip to content

Commit

Permalink
Revert "Assume F_FULLFSYNC on darwin"
Browse files Browse the repository at this point in the history
  • Loading branch information
Unrud committed Feb 1, 2022
1 parent a1a0fdd commit 496b629
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion radicale/pathutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 496b629

Please sign in to comment.