[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dovecot-cvs
Subject:    dovecot-2.0: index: Fix to previous cleanups.
From:       dovecot () dovecot ! org (dovecot at dovecot ! org)
Date:       2009-07-31 2:10:20
Message-ID: hg.497b17e8bb91.1249006220.616317073 () syksy ! dovecot ! org
[Download RAW message or body]

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 =

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic