[dovecot-cvs] dovecot/src/lib-index mail-transaction-log.c, 1.111.2.12, 1.111.2.13

tss at dovecot.org tss at dovecot.org
Wed Mar 7 02:47:54 EET 2007


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv14512

Modified Files:
      Tag: branch_1_0
	mail-transaction-log.c 
Log Message:
Fixed last change: Don't crash now when rotating non-locked log..



Index: mail-transaction-log.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-transaction-log.c,v
retrieving revision 1.111.2.12
retrieving revision 1.111.2.13
diff -u -d -r1.111.2.12 -r1.111.2.13
--- mail-transaction-log.c	7 Mar 2007 00:42:27 -0000	1.111.2.12
+++ mail-transaction-log.c	7 Mar 2007 00:47:52 -0000	1.111.2.13
@@ -887,7 +887,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. */



More information about the dovecot-cvs mailing list