]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Increase initial memory pool sizes.
authorTimo Sirainen <tss@iki.fi>
Wed, 8 Feb 2012 22:38:30 +0000 (00:38 +0200)
committerTimo Sirainen <tss@iki.fi>
Wed, 8 Feb 2012 22:38:30 +0000 (00:38 +0200)
src/lib-index/mail-cache.c
src/lib-master/mountpoint-list.c

index f81db683bbe9c41afd9aca1b5d8448f00b5f05a7..1db7e62c05e4e6b0714af1dc1eb685d5ff0314e6 100644 (file)
@@ -409,7 +409,7 @@ static struct mail_cache *mail_cache_alloc(struct mail_index *index)
        cache->fd = -1;
        cache->filepath =
                i_strconcat(index->filepath, MAIL_CACHE_FILE_SUFFIX, NULL);
-       cache->field_pool = pool_alloconly_create("Cache fields", 1024);
+       cache->field_pool = pool_alloconly_create("Cache fields", 2048);
        cache->field_name_hash =
                hash_table_create(default_pool, cache->field_pool, 0,
                                  strcase_hash, (hash_cmp_callback_t *)strcasecmp);
index 856a07e7b063ff2495d39aa13612d6816893ec58..3182a80e1770a3d38e81b6892c47fdcb596a609a 100644 (file)
@@ -56,7 +56,7 @@ mountpoint_list_init(const char *perm_path, const char *state_path)
        struct mountpoint_list *list;
        pool_t pool;
 
-       pool = pool_alloconly_create("mountpoint list", 512);
+       pool = pool_alloconly_create("mountpoint list", 1024);
        list = p_new(pool, struct mountpoint_list, 1);
        list->pool = pool;
        list->perm_path = p_strdup(pool, perm_path);