Explorar el Código

Flush files before fsync'ing

Unrud hace 8 años
padre
commit
ed6335aa15
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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: