dovecot-2.2: lib-index: Don't mix index struct caching for in-me...

dovecot at dovecot.org dovecot at dovecot.org
Tue Oct 29 21:08:20 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/2b3948fa4a09
changeset: 16894:2b3948fa4a09
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Oct 29 21:07:28 2013 +0200
description:
lib-index: Don't mix index struct caching for in-memory vs. disk indexes.

diffstat:

 src/lib-index/mail-index-alloc-cache.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 41c844719166 -r 2b3948fa4a09 src/lib-index/mail-index-alloc-cache.c
--- a/src/lib-index/mail-index-alloc-cache.c	Tue Oct 29 20:26:33 2013 +0200
+++ b/src/lib-index/mail-index-alloc-cache.c	Tue Oct 29 21:07:28 2013 +0200
@@ -97,7 +97,8 @@
 				else
 					match = rec;
 			}
-		} else if (mailbox_path != NULL && rec->mailbox_path != NULL) {
+		} else if (mailbox_path != NULL && rec->mailbox_path != NULL &&
+			   index_dir == NULL && rec->index_dir_ino == 0) {
 			if (strcmp(mailbox_path, rec->mailbox_path) == 0)
 				match = rec;
 		}


More information about the dovecot-cvs mailing list