[dovecot-cvs] dovecot/src/lib-index mail-index.c,1.265,1.266

tss at dovecot.org tss at dovecot.org
Sat Mar 10 21:29:36 EET 2007


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

Modified Files:
	mail-index.c 
Log Message:
Rotating in-memory transaction log crashed



Index: mail-index.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index.c,v
retrieving revision 1.265
retrieving revision 1.266
diff -u -d -r1.265 -r1.266
--- mail-index.c	10 Mar 2007 19:22:55 -0000	1.265
+++ mail-index.c	10 Mar 2007 19:29:33 -0000	1.266
@@ -1182,6 +1182,11 @@
 	unsigned int i;
 	int ret;
 
+	if (MAIL_INDEX_IS_IN_MEMORY(index)) {
+		*hdr_r = *index->hdr;
+		return TRUE;
+	}
+
 	if (!index->mmap_disable) {
 		ret = mail_index_map(index, FALSE);
 		if (ret > 0)



More information about the dovecot-cvs mailing list