Parcourir la source

Flush files before fsync'ing

Unrud il y a 8 ans
Parent
commit
ed6335aa15
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      radicale/storage.py

+ 1 - 0
radicale/storage.py

@@ -771,6 +771,7 @@ class Collection(BaseCollection):
             newline=newline, encoding=None if "b" in mode else self._encoding)
         try:
             yield tmp
+            tmp.flush()
             try:
                 self._fsync(tmp.fileno())
             except OSError as e: