[dovecot-cvs] dovecot/src/lib-index/mbox mbox-index.c,1.62,1.63

cras at procontrol.fi cras at procontrol.fi
Wed Feb 19 22:01:57 EET 2003


Update of /home/cvs/dovecot/src/lib-index/mbox
In directory danu:/tmp/cvs-serv24884/src/lib-index/mbox

Modified Files:
	mbox-index.c 
Log Message:
mail_read_mmaped = no works now with mbox



Index: mbox-index.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mbox/mbox-index.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- mbox-index.c	4 Feb 2003 03:37:51 -0000	1.62
+++ mbox-index.c	19 Feb 2003 20:01:55 -0000	1.63
@@ -75,14 +75,13 @@
 	}
 
 	if (index->mbox_stream == NULL) {
-		/* FIXME: breaks expunge */
-		/*if (index->mail_read_mmaped) {*/
+		if (index->mail_read_mmaped) {
 			index->mbox_stream =
 				i_stream_create_mmap(index->mbox_fd,
 						     default_pool,
 						     MAIL_MMAP_BLOCK_SIZE,
 						     0, 0, FALSE);
-		/*} else {
+		} else {
 			if (lseek(index->mbox_fd, 0, SEEK_SET) < 0) {
 				mbox_set_syscall_error(index, "lseek()");
 				return NULL;
@@ -93,7 +92,7 @@
 						     default_pool,
 						     MAIL_READ_BLOCK_SIZE,
 						     FALSE);
-		}*/
+		}
 	}
 
 	i_stream_set_read_limit(index->mbox_stream, 0);




More information about the dovecot-cvs mailing list