dovecot-1.2: Transaction log dotlocking ignored mail_nfs_index a...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jun 16 03:46:59 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/73b9d8556f5a
changeset: 9130:73b9d8556f5a
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 0cdb6c23683f -r 73b9d8556f5a src/lib-index/mail-transaction-log.c
--- a/src/lib-index/mail-transaction-log.c Mon Jun 15 20:38:50 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