[dovecot-cvs] dovecot/src/lib-index mail-transaction-log.c, 1.122, 1.123

tss at dovecot.org tss at dovecot.org
Tue Mar 6 16:28:36 EET 2007


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

Modified Files:
	mail-transaction-log.c 
Log Message:
Don't try to fsck index file in error conditions if it's not yet opened.



Index: mail-transaction-log.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-transaction-log.c,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -d -r1.122 -r1.123
--- mail-transaction-log.c	26 Jan 2007 13:58:52 -0000	1.122
+++ mail-transaction-log.c	6 Mar 2007 14:28:34 -0000	1.123
@@ -58,7 +58,7 @@
 	t_pop();
 	va_end(va);
 
-	if (file->log->index->log != NULL) {
+	if (file->log->index->log != NULL && file->log->index->map != NULL) {
 		/* this may have happened because of broken index.
 		   make sure it's ok. */
 		(void)mail_index_fsck(file->log->index);



More information about the dovecot-cvs mailing list