From ed6335aa15f9bc59f6371758e1fa53e26ee5df02 Mon Sep 17 00:00:00 2001 From: Unrud Date: Sun, 24 Sep 2017 02:01:13 +0200 Subject: [PATCH] Flush files before fsync'ing --- radicale/storage.py | 1 + 1 file changed, 1 insertion(+) diff --git a/radicale/storage.py b/radicale/storage.py index 71cb5014..65510bd3 100644 --- a/radicale/storage.py +++ b/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: