dovecot: Fixes

dovecot at dovecot.org dovecot at dovecot.org
Thu Jul 12 03:21:51 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/2b150b4b49df
changeset: 5953:2b150b4b49df
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jul 12 03:20:41 2007 +0300
description:
Fixes

diffstat:

2 files changed, 4 insertions(+), 1 deletion(-)
src/lib-index/mail-transaction-log-file.c |    1 +
src/lib-index/mail-transaction-log.c      |    4 +++-

diffs (26 lines):

diff -r ba118a9eeb50 -r 2b150b4b49df src/lib-index/mail-transaction-log-file.c
--- a/src/lib-index/mail-transaction-log-file.c	Thu Jul 12 03:17:38 2007 +0300
+++ b/src/lib-index/mail-transaction-log-file.c	Thu Jul 12 03:20:41 2007 +0300
@@ -472,6 +472,7 @@ mail_transaction_log_file_create2(struct
 							       FALSE) > 0) {
 				/* yes, it was ok */
 				(void)file_dotlock_delete(dotlock);
+				mail_transaction_log_file_add_to_list(file);
 				return 0;
 			}
 			file->fd = -1;
diff -r ba118a9eeb50 -r 2b150b4b49df src/lib-index/mail-transaction-log.c
--- a/src/lib-index/mail-transaction-log.c	Thu Jul 12 03:17:38 2007 +0300
+++ b/src/lib-index/mail-transaction-log.c	Thu Jul 12 03:20:41 2007 +0300
@@ -127,8 +127,10 @@ int mail_transaction_log_create(struct m
 		mail_transaction_log_file_free(&log->open_file);
 	}
 
-	if (mail_transaction_log_file_create(file, FALSE) < 0)
+	if (mail_transaction_log_file_create(file, FALSE) < 0) {
 		mail_transaction_log_file_free(&file);
+		return -1;
+	}
 
 	mail_transaction_log_set_head(log, file);
 	return 1;


More information about the dovecot-cvs mailing list