dovecot-2.0: index: Fix to previous cleanups.

dovecot at dovecot.org dovecot at dovecot.org
Fri Jul 31 05:10:20 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/497b17e8bb91
changeset: 9705:497b17e8bb91
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jul 30 21:09:17 2009 -0400
description:
index: Fix to previous cleanups.

diffstat:

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

diffs (26 lines):

diff -r f704410ce580 -r 497b17e8bb91 src/lib-index/mail-transaction-log.c
--- a/src/lib-index/mail-transaction-log.c	Thu Jul 30 19:52:41 2009 -0400
+++ b/src/lib-index/mail-transaction-log.c	Thu Jul 30 21:09:17 2009 -0400
@@ -36,9 +36,6 @@ mail_transaction_log_alloc(struct mail_i
 
 	log = i_new(struct mail_transaction_log, 1);
 	log->index = index;
-	log->filepath = i_strconcat(index->filepath,
-				    MAIL_TRANSACTION_LOG_SUFFIX, NULL);
-	log->filepath2 = i_strconcat(log->filepath, ".2", NULL);
 
 	log->dotlock_settings.timeout = MAIL_TRANSCATION_LOG_LOCK_TIMEOUT;
 	log->dotlock_settings.stale_timeout =
@@ -73,6 +70,12 @@ int mail_transaction_log_open(struct mai
 {
 	struct mail_transaction_log_file *file;
 	int ret;
+
+	i_free(log->filepath);
+	i_free(log->filepath2);
+	log->filepath = i_strconcat(log->index->filepath,
+				    MAIL_TRANSACTION_LOG_SUFFIX, NULL);
+	log->filepath2 = i_strconcat(log->filepath, ".2", NULL);
 
 	log->flags = log->index->flags;
 	log->dotlock_settings.use_excl_lock =


More information about the dovecot-cvs mailing list