dovecot-2.2: lib-storage: Index rebuilding (for [sm]dbox) caused...

dovecot at dovecot.org dovecot at dovecot.org
Thu Feb 19 17:32:15 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/4f3db8aec0a1
changeset: 18269:4f3db8aec0a1
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Feb 19 19:31:49 2015 +0200
description:
lib-storage: Index rebuilding (for [sm]dbox) caused it to reset dovecot.index.cache file
Although in some situations this might be wanted, usually it's not needed
and simply makes the performance worse. If caching is explicitly unwanted
the dovecot.index.cache file can be deleted manually for now. Perhaps there
could be a separate doveadm force-resync parameter to do it as well.

diffstat:

 src/lib-storage/index/index-rebuild.c |  5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diffs (16 lines):

diff -r 98eeca072492 -r 4f3db8aec0a1 src/lib-storage/index/index-rebuild.c
--- a/src/lib-storage/index/index-rebuild.c	Thu Feb 19 13:45:23 2015 +0200
+++ b/src/lib-storage/index/index-rebuild.c	Thu Feb 19 19:31:49 2015 +0200
@@ -160,11 +160,8 @@
 	index_mailbox_reset_uidvalidity(box);
 	(void)mail_index_ext_lookup(box->index, "cache", &ctx->cache_ext_id);
 
-	/* open cache and read the caching decisions. we'll reset the cache in
-	   case it contains any invalid data, but we want to preserve the
-	   decisions. */
+	/* open cache and read the caching decisions. */
 	(void)mail_cache_open_and_verify(ctx->box->cache);
-	mail_cache_reset(box->cache);
 
 	/* if backup index file exists, try to use it */
 	index_dir = mailbox_get_index_path(box);


More information about the dovecot-cvs mailing list