dovecot: NFS attribute cache flushing fix
dovecot at dovecot.org
dovecot at dovecot.org
Tue Dec 4 14:39:37 EET 2007
details: http://hg.dovecot.org/dovecot/rev/fe777302d928
changeset: 6928:fe777302d928
user: Timo Sirainen <tss at iki.fi>
date: Tue Dec 04 14:39:32 2007 +0200
description:
NFS attribute cache flushing fix
diffstat:
1 file changed, 8 insertions(+), 2 deletions(-)
src/lib-index/mail-transaction-log-file.c | 10 ++++++++--
diffs (20 lines):
diff -r 9a11ee1c7912 -r fe777302d928 src/lib-index/mail-transaction-log-file.c
--- a/src/lib-index/mail-transaction-log-file.c Tue Dec 04 14:31:55 2007 +0200
+++ b/src/lib-index/mail-transaction-log-file.c Tue Dec 04 14:39:32 2007 +0200
@@ -921,8 +921,14 @@ mail_transaction_log_file_read(struct ma
that we really should have read more, flush the cache and try again.
if file is locked, the attribute cache was already flushed when
refreshing the log. */
- if (file->log->index->nfs_flush && nfs_flush)
- nfs_flush_attr_cache_fd_locked(file->filepath, file->fd);
+ if (file->log->index->nfs_flush && nfs_flush) {
+ if (!file->locked)
+ nfs_flush_attr_cache_unlocked(file->filepath);
+ else {
+ nfs_flush_attr_cache_fd_locked(file->filepath,
+ file->fd);
+ }
+ }
if (file->buffer != NULL && file->buffer_offset > start_offset) {
/* we have to insert missing data to beginning of buffer */
More information about the dovecot-cvs
mailing list