changeset 5236:6761b2a46ec3 HEAD

Fixed last change: Don't crash now when rotating non-locked log..
author Timo Sirainen <tss@iki.fi>
date Wed, 07 Mar 2007 02:47:54 +0200
parents 660763f5e75a
children 78553445a036
files src/lib-index/mail-transaction-log.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log.c	Wed Mar 07 02:44:37 2007 +0200
+++ b/src/lib-index/mail-transaction-log.c	Wed Mar 07 02:47:54 2007 +0200
@@ -881,7 +881,8 @@
 
 	if (MAIL_INDEX_IS_IN_MEMORY(log->index)) {
 		file = mail_transaction_log_file_alloc_in_memory(log);
-		file->locked = TRUE;
+		if (lock)
+			file->locked = TRUE;
 	} else {
                 /* we're locked, we shouldn't need to worry about ESTALE
                    problems in here. */