[dovecot-cvs] dovecot/src/lib-index mail-transaction-log.c, 1.70, 1.71

cras at dovecot.org cras at dovecot.org
Sun Nov 7 20:52:32 EET 2004


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

Modified Files:
	mail-transaction-log.c 
Log Message:
fsck index if transaction log is found to be corrupted.



Index: mail-transaction-log.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-transaction-log.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -d -r1.70 -r1.71
--- mail-transaction-log.c	6 Nov 2004 17:20:19 -0000	1.70
+++ mail-transaction-log.c	7 Nov 2004 18:52:30 -0000	1.71
@@ -52,6 +52,9 @@
 			     file->filepath, t_strdup_vprintf(fmt, va));
 	t_pop();
 	va_end(va);
+
+	/* this may have happened because of broken index. make sure it's ok. */
+	(void)mail_index_fsck(file->log->index);
 }
 
 static int



More information about the dovecot-cvs mailing list