do not call sync() when committing a message, it's not helping in any way
authorgilles <gilles@openbsd.org>
Mon, 12 Oct 2015 22:29:49 +0000 (22:29 +0000)
committergilles <gilles@openbsd.org>
Mon, 12 Oct 2015 22:29:49 +0000 (22:29 +0000)
usr.sbin/smtpd/queue_fs.c

index 38d027c..690c7f5 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: queue_fs.c,v 1.8 2015/01/20 17:37:54 deraadt Exp $    */
+/*     $OpenBSD: queue_fs.c,v 1.9 2015/10/12 22:29:49 gilles Exp $     */
 
 /*
  * Copyright (c) 2011 Gilles Chehade <gilles@poolp.org>
@@ -165,9 +165,6 @@ queue_fs_message_commit(uint32_t msgid, const char *path)
                return 0;
        }
 
-       /* best effort */
-       sync();
-
        return 1;
 }