[dovecot-cvs] dovecot/src/lib-index mail-index.c, 1.230.2.22, 1.230.2.23

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


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

Modified Files:
      Tag: branch_1_0
	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.230.2.22
retrieving revision 1.230.2.23
diff -u -d -r1.230.2.22 -r1.230.2.23
--- mail-index.c	10 Mar 2007 19:22:53 -0000	1.230.2.22
+++ mail-index.c	10 Mar 2007 19:29:32 -0000	1.230.2.23
@@ -1179,6 +1179,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