changeset 5953:2b150b4b49df HEAD

Fixes
author Timo Sirainen <tss@iki.fi>
date Thu, 12 Jul 2007 03:20:41 +0300
parents ba118a9eeb50
children b788251996e5
files src/lib-index/mail-transaction-log-file.c src/lib-index/mail-transaction-log.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 							       FALSE) > 0) {
 				/* yes, it was ok */
 				(void)file_dotlock_delete(dotlock);
+				mail_transaction_log_file_add_to_list(file);
 				return 0;
 			}
 			file->fd = -1;
--- 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 @@
 		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;