Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6700:16fc51385cd1 HEAD
mmap_disable=yes: Don't flush NFS caches if mail_nfs_index=no.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 06 Nov 2007 18:27:29 +0200 |
parents | faa4da358d37 |
children | c601e8cd0ffc |
files | src/lib-index/mail-cache.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-cache.c Tue Nov 06 18:08:58 2007 +0200 +++ b/src/lib-index/mail-cache.c Tue Nov 06 18:27:29 2007 +0200 @@ -77,8 +77,11 @@ if (cache->file_cache == NULL) return; - nfs_flush_attr_cache_fd(cache->filepath, cache->fd); - nfs_flush_read_cache(cache->filepath, cache->fd, F_UNLCK, FALSE); + if (cache->index->nfs_flush) { + nfs_flush_attr_cache_fd(cache->filepath, cache->fd); + nfs_flush_read_cache(cache->filepath, cache->fd, + F_UNLCK, FALSE); + } file_cache_set_fd(cache->file_cache, cache->fd);