changeset 3553:aa071f73382c HEAD

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..
author Timo Sirainen <tss@iki.fi>
date Sat, 27 Aug 2005 15:29:54 +0300
parents 6a1ea27a4256
children 4b9957c31e1f
files src/lib-index/mail-cache.c
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-cache.c	Sat Aug 27 13:31:45 2005 +0300
+++ b/src/lib-index/mail-cache.c	Sat Aug 27 15:29:54 2005 +0300
@@ -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 */