1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-29 16:55:32 +00:00

Move filesystem_fsync config from section storage to internal

This commit is contained in:
Unrud 2018-08-18 12:56:39 +02:00
parent 4282ea46e4
commit 8281769edf
6 changed files with 10 additions and 15 deletions

View file

@ -784,7 +784,7 @@ class Collection(BaseCollection):
@classmethod
def _fsync(cls, fd):
if cls.configuration.getboolean("storage", "filesystem_fsync"):
if cls.configuration.getboolean("internal", "filesystem_fsync"):
if os.name == "posix" and hasattr(fcntl, "F_FULLFSYNC"):
fcntl.fcntl(fd, fcntl.F_FULLFSYNC)
else:
@ -797,7 +797,7 @@ class Collection(BaseCollection):
This only works on POSIX and does nothing on other systems.
"""
if not cls.configuration.getboolean("storage", "filesystem_fsync"):
if not cls.configuration.getboolean("internal", "filesystem_fsync"):
return
if os.name == "posix":
try: