Mercurial > dovecot > original-hg > dovecot-1.2
changeset 7466:f5af6ce6376f HEAD
DEBUG: Make sure mempool's initial size is large enough to account for
extra sentries.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 30 Apr 2008 17:05:19 +0300 |
parents | 6c6af734f284 |
children | abc88e664e63 |
files | src/lib/mempool-alloconly.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/mempool-alloconly.c Fri Apr 25 03:23:49 2008 +0300 +++ b/src/lib/mempool-alloconly.c Wed Apr 30 17:05:19 2008 +0300 @@ -126,7 +126,7 @@ 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() */