Eliminate one more fsync
This commit is contained in:
parent
fb71fa9638
commit
0da6bedaa0
@ -198,6 +198,7 @@ class MaildirFolder(BaseFolder):
|
|||||||
os.path.join(tmpdir, messagename))
|
os.path.join(tmpdir, messagename))
|
||||||
os.unlink(os.path.join(tmpdir, tmpmessagename))
|
os.unlink(os.path.join(tmpdir, tmpmessagename))
|
||||||
|
|
||||||
|
if self.dofsync:
|
||||||
try:
|
try:
|
||||||
# fsync the directory (safer semantics in Linux)
|
# fsync the directory (safer semantics in Linux)
|
||||||
fd = os.open(tmpdir, os.O_RDONLY)
|
fd = os.open(tmpdir, os.O_RDONLY)
|
||||||
|
Loading…
Reference in New Issue
Block a user