dovecot-2.0: Transaction log dotlocking ignored mail_nfs_index a...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jun 16 03:49:34 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/73aea4432453
changeset: 9475:73aea4432453
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jun 15 20:46:51 2009 -0400
description:
Transaction log dotlocking ignored mail_nfs_index and dotlock_use_excl settings.

diffstat:

1 file changed, 5 insertions(+), 3 deletions(-)
src/lib-index/mail-transaction-log.c |    8 +++++---

diffs (31 lines):

diff -r 836646906a63 -r 73aea4432453 src/lib-index/mail-transaction-log.c
--- a/src/lib-index/mail-transaction-log.c	Mon Jun 15 19:38:30 2009 -0400
+++ b/src/lib-index/mail-transaction-log.c	Mon Jun 15 20:46:51 2009 -0400
@@ -37,15 +37,12 @@ mail_transaction_log_alloc(struct mail_i
 	log = i_new(struct mail_transaction_log, 1);
 	log->index = index;
 
-	log->dotlock_settings.use_excl_lock = index->use_excl_dotlocks;
-	log->dotlock_settings.nfs_flush = index->nfs_flush;
 	log->dotlock_settings.timeout = MAIL_TRANSCATION_LOG_LOCK_TIMEOUT;
 	log->dotlock_settings.stale_timeout =
 		MAIL_TRANSCATION_LOG_LOCK_CHANGE_TIMEOUT;
 
 	log->new_dotlock_settings = log->dotlock_settings;
 	log->new_dotlock_settings.lock_suffix = LOG_NEW_DOTLOCK_SUFFIX;
-
 	return log;
 }
 
@@ -77,6 +74,11 @@ int mail_transaction_log_open(struct mai
 	struct mail_transaction_log_file *file;
 	const char *path;
 	int ret;
+
+	log->dotlock_settings.use_excl_lock = log->index->use_excl_dotlocks;
+	log->dotlock_settings.nfs_flush = log->index->nfs_flush;
+	log->new_dotlock_settings.use_excl_lock = log->index->use_excl_dotlocks;
+	log->new_dotlock_settings.nfs_flush = log->index->nfs_flush;
 
 	if (log->open_file != NULL)
 		mail_transaction_log_file_free(&log->open_file);


More information about the dovecot-cvs mailing list