Mercurial > dovecot > original-hg > dovecot-1.2
changeset 3542:ca2121e0d582 HEAD
Removed fsync() call when appending to transaction log file. It's not all
that important and just slows down.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 18 Aug 2005 19:55:25 +0300 |
parents | 3cc9212b1c66 |
children | d597feda0c5e |
files | src/lib-index/mail-transaction-log-append.c |
diffstat | 1 files changed, 0 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log-append.c Thu Aug 18 19:43:21 2005 +0300 +++ b/src/lib-index/mail-transaction-log-append.c Thu Aug 18 19:55:25 2005 +0300 @@ -470,15 +470,6 @@ } if (!MAIL_TRANSACTION_LOG_FILE_IN_MEMORY(file)) { - if (ret == 0 && fsync(file->fd) < 0) { - /* we don't know how much of it got written, - it may be corrupted now.. */ - mail_index_file_set_syscall_error(log->index, - file->filepath, - "fsync()"); - ret = -1; - } - if (ret == 0 && file->first_append_size != 0) { /* synced - rewrite first record's header */ ret = pwrite_full(file->fd, &file->first_append_size,