[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-mail.c, 1.31, 1.32

tss at dovecot.org tss at dovecot.org
Thu Jan 18 16:57:46 UTC 2007


Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv22226/src/lib-storage/index/maildir

Modified Files:
	maildir-mail.c 
Log Message:
Removed mail_read_mmaped setting. It's a pretty useless setting and
apparently it can also be buggy.



Index: maildir-mail.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-mail.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- maildir-mail.c	15 Dec 2006 18:38:22 -0000	1.31
+++ maildir-mail.c	18 Jan 2007 16:57:44 -0000	1.32
@@ -60,13 +60,8 @@
 		return NULL;
 	}
 
-	if (mbox->ibox.mail_read_mmaped) {
-		return i_stream_create_mmap(fd, default_pool,
-					    MAIL_MMAP_BLOCK_SIZE, 0, 0, TRUE);
-	} else {
-		return i_stream_create_file(fd, default_pool,
-					    MAIL_READ_BLOCK_SIZE, TRUE);
-	}
+	return i_stream_create_file(fd, default_pool,
+				    MAIL_READ_BLOCK_SIZE, TRUE);
 }
 
 static int maildir_mail_stat(struct mail *mail, struct stat *st)



More information about the dovecot-cvs mailing list