From: gilles Date: Mon, 12 Oct 2015 22:29:49 +0000 (+0000) Subject: do not call sync() when committing a message, it's not helping in any way X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=df67ff3e906498eee4270820468c52928df9e3eb;p=openbsd do not call sync() when committing a message, it's not helping in any way --- diff --git a/usr.sbin/smtpd/queue_fs.c b/usr.sbin/smtpd/queue_fs.c index 38d027cdcf2..690c7f5d014 100644 --- a/usr.sbin/smtpd/queue_fs.c +++ b/usr.sbin/smtpd/queue_fs.c @@ -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 @@ -165,9 +165,6 @@ queue_fs_message_commit(uint32_t msgid, const char *path) return 0; } - /* best effort */ - sync(); - return 1; }