]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Don't mix index struct caching for in-memory vs. disk indexes.
authorTimo Sirainen <tss@iki.fi>
Tue, 29 Oct 2013 19:07:28 +0000 (21:07 +0200)
committerTimo Sirainen <tss@iki.fi>
Tue, 29 Oct 2013 19:07:28 +0000 (21:07 +0200)
src/lib-index/mail-index-alloc-cache.c

index 21685bc618bbe7e4b3c0cd4790447f1f90dfc85b..5a36e8a072f7908824b16d6bd6bc31e41998570d 100644 (file)
@@ -97,7 +97,8 @@ mail_index_alloc_cache_find(const char *mailbox_path, const char *index_dir,
                                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;
                }