Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6735:a881755b3db8 HEAD
We don't really care if we lost a cache file or if it gets broken, so don't
ever fsync it unless mail_nfs_index=yes.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 08 Nov 2007 18:12:39 +0200 |
parents | da69c4853e35 |
children | 3e189cbb7e7a |
files | src/lib-index/mail-cache-compress.c src/lib-index/mail-cache-transaction.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-cache-compress.c Thu Nov 08 04:23:00 2007 +0200 +++ b/src/lib-index/mail-cache-compress.c Thu Nov 08 18:12:39 2007 +0200 @@ -295,7 +295,7 @@ o_stream_destroy(&output); - if (!cache->index->fsync_disable) { + if (cache->index->nfs_flush) { if (fdatasync(fd) < 0) { mail_cache_set_syscall_error(cache, "fdatasync()"); array_free(ext_offsets);
--- a/src/lib-index/mail-cache-transaction.c Thu Nov 08 04:23:00 2007 +0200 +++ b/src/lib-index/mail-cache-transaction.c Thu Nov 08 18:12:39 2007 +0200 @@ -716,7 +716,7 @@ if (mail_cache_write(cache, buffer->data, size, offset) < 0) return -1; - if (!cache->index->fsync_disable) { + if (cache->index->nfs_flush) { if (fdatasync(cache->fd) < 0) { mail_cache_set_syscall_error(cache, "fdatasync()"); return -1;