]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
DEBUG: Make sure mempool's initial size is large enough to account for
authorTimo Sirainen <tss@iki.fi>
Wed, 30 Apr 2008 14:05:19 +0000 (17:05 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 30 Apr 2008 14:05:19 +0000 (17:05 +0300)
extra sentries.

--HG--
branch : HEAD

src/lib/mempool-alloconly.c

index 55044b2a7075fd541ed961258d028c390ac5c7ce..e8c11251637bad4e5c8a171f16d7d31a1c6f5835 100644 (file)
@@ -126,7 +126,7 @@ pool_t pool_alloconly_create(const char *name ATTR_UNUSED, size_t size)
                SIZEOF_POOLBLOCK;
 
 #ifdef DEBUG
-       min_alloc += MEM_ALIGN(strlen(name) + 1);
+       min_alloc += MEM_ALIGN(strlen(name) + 1 + SENTRY_COUNT);
 #endif
 
        /* create a fake alloconly_pool so we can call block_alloc() */