mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-14 15:34:35 +00:00
CLEANUP: compression: don't allocate DEFAULT_MAXZLIBMEM without USE_ZLIB
It's pointless to reserve this amount of memory when zlib is not used. Adding the condition will make build scripts easier to manage. This may be backported to 1.6.
This commit is contained in:
parent
f25b3573d6
commit
ed9dddd237
@ -134,7 +134,7 @@ struct global global = {
|
||||
.nbproc = 1,
|
||||
.req_count = 0,
|
||||
.logsrvs = LIST_HEAD_INIT(global.logsrvs),
|
||||
#ifdef DEFAULT_MAXZLIBMEM
|
||||
#if defined(USE_ZLIB) && defined(DEFAULT_MAXZLIBMEM)
|
||||
.maxzlibmem = DEFAULT_MAXZLIBMEM * 1024U * 1024U,
|
||||
#else
|
||||
.maxzlibmem = 0,
|
||||
|
Loading…
Reference in New Issue
Block a user