Mercurial > dovecot > core-2.2
diff src/lib-index/mail-index.c @ 10656:9d3b5cbef222 HEAD
Moved mail_index lookup cache from lib-storage to lib-index.
Removed some code duplication as a result.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 07 Feb 2010 04:50:40 +0200 |
parents | fc0ac73f0b36 |
children | 22354f505277 |
line wrap: on
line diff
--- a/src/lib-index/mail-index.c Sun Feb 07 03:25:32 2010 +0200 +++ b/src/lib-index/mail-index.c Sun Feb 07 04:50:40 2010 +0200 @@ -11,6 +11,7 @@ #include "nfs-workarounds.h" #include "read-full.h" #include "write-full.h" +#include "mail-index-alloc-cache.h" #include "mail-index-private.h" #include "mail-index-view-private.h" #include "mail-index-sync-private.h" @@ -527,6 +528,7 @@ i_assert(index->map != NULL); index->opened = TRUE; + mail_index_alloc_cache_index_opened(index); return 1; }