[dovecot-cvs] dovecot/src/lib-index/mbox mbox-index.c,1.50,1.51

cras at procontrol.fi cras at procontrol.fi
Wed Nov 27 00:01:14 EET 2002


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

Modified Files:
	mbox-index.c 
Log Message:
temporarily disabled mail_read_mmaped setting, causes expunge corruption.



Index: mbox-index.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mbox/mbox-index.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- mbox-index.c	26 Nov 2002 19:49:17 -0000	1.50
+++ mbox-index.c	26 Nov 2002 22:01:11 -0000	1.51
@@ -71,13 +71,14 @@
 	}
 
 	if (index->mbox_inbuf == NULL) {
-		if (index->mail_read_mmaped) {
+		/* FIXME: breaks expunge */
+		/*if (index->mail_read_mmaped) {*/
 			index->mbox_inbuf =
 				i_buffer_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;
@@ -88,7 +89,7 @@
 						     default_pool,
 						     MAIL_READ_BLOCK_SIZE,
 						     FALSE);
-		}
+		}*/
 	}
 
 	i_buffer_set_read_limit(index->mbox_inbuf, 0);




More information about the dovecot-cvs mailing list