[dovecot-cvs] dovecot/src/lib-index mail-transaction-log.c, 1.111.2.10, 1.111.2.11
tss at dovecot.org
tss at dovecot.org
Tue Mar 6 16:28:33 EET 2007
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv5682
Modified Files:
Tag: branch_1_0
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.111.2.10
retrieving revision 1.111.2.11
diff -u -d -r1.111.2.10 -r1.111.2.11
--- mail-transaction-log.c 26 Jan 2007 13:58:31 -0000 1.111.2.10
+++ mail-transaction-log.c 6 Mar 2007 14:28:31 -0000 1.111.2.11
@@ -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