mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Flush files before fsync'ing
This commit is contained in:
parent
21f5f5d70b
commit
ed6335aa15
1 changed files with 1 additions and 0 deletions
|
@ -771,6 +771,7 @@ class Collection(BaseCollection):
|
||||||
newline=newline, encoding=None if "b" in mode else self._encoding)
|
newline=newline, encoding=None if "b" in mode else self._encoding)
|
||||||
try:
|
try:
|
||||||
yield tmp
|
yield tmp
|
||||||
|
tmp.flush()
|
||||||
try:
|
try:
|
||||||
self._fsync(tmp.fileno())
|
self._fsync(tmp.fileno())
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue