mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-17 17:04:35 +00:00
CLEANUP: init: remove the ifdef on HAPROXY_MEMMAX
It's ugly, let's move it to defaults.h with all other ones and preset it to zero if not defined.
This commit is contained in:
parent
cc0d554e5f
commit
b61fccdc3f
@ -385,6 +385,11 @@
|
||||
#define MEM_USABLE_RATIO 0.97
|
||||
#endif
|
||||
|
||||
/* if not 0, maximum allocatable memory per process in MB */
|
||||
#ifndef HAPROXY_MEMMAX
|
||||
#define HAPROXY_MEMMAX 0
|
||||
#endif
|
||||
|
||||
/* Pools are always enabled unless explicitly disabled. When disabled, the
|
||||
* calls are directly passed to the underlying OS functions.
|
||||
*/
|
||||
|
@ -1513,10 +1513,7 @@ static void init(int argc, char **argv)
|
||||
totalconn = actconn = listeners = stopping = 0;
|
||||
killed = 0;
|
||||
|
||||
|
||||
#ifdef HAPROXY_MEMMAX
|
||||
global.rlimit_memmax_all = HAPROXY_MEMMAX;
|
||||
#endif
|
||||
|
||||
tzset();
|
||||
clock_init_process_date();
|
||||
|
Loading…
Reference in New Issue
Block a user