]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Use file_cache_new_path() for dovecot.index.cache
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 14 Dec 2016 17:35:29 +0000 (19:35 +0200)
committerGitLab <gitlab@git.dovecot.net>
Thu, 15 Dec 2016 11:02:10 +0000 (13:02 +0200)
src/lib-index/mail-cache.c

index 356d8deeefa2708c137f23aed7e9df3cd23de44a..77a24a0e8fc4311ca143c97243c46344f4dcb385 100644 (file)
@@ -534,7 +534,7 @@ static struct mail_cache *mail_cache_alloc(struct mail_index *index)
 
        if (!MAIL_INDEX_IS_IN_MEMORY(index) &&
            (index->flags & MAIL_INDEX_OPEN_FLAG_MMAP_DISABLE) != 0)
-               cache->file_cache = file_cache_new(-1);
+               cache->file_cache = file_cache_new_path(-1, cache->filepath);
        cache->map_with_read =
                (cache->index->flags & MAIL_INDEX_OPEN_FLAG_SAVEONLY) != 0;