[dovecot-cvs] dovecot/src/lib-index mail-cache.c,1.71,1.72

cras at dovecot.org cras at dovecot.org
Sat Aug 27 15:29:56 EEST 2005


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

Modified Files:
	mail-cache.c 
Log Message:
Don't try refresh index file while locking it. It just slows down things,
is rarely useful and may break sometimes with mmap_disable=yes. Also we were
calling it after mail_index_view_open() so it wasn't even working..



Index: mail-cache.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-cache.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -d -r1.71 -r1.72
--- mail-cache.c	4 Jul 2005 11:32:20 -0000	1.71
+++ mail-cache.c	27 Aug 2005 12:29:54 -0000	1.72
@@ -364,9 +364,6 @@
 		return 0;
 
 	view = mail_index_view_open(cache->index);
-	if (mail_index_refresh(cache->index) < 0)
-		return -1;
-
 	ext = mail_index_view_get_ext(view, cache->ext_id);
 	if (ext == NULL) {
 		/* cache not used */



More information about the dovecot-cvs mailing list