mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-11 11:52:52 +02:00
MINOR: pools: enable pools with DEBUG_FAIL_ALLOC as well
During 2.4-dev, fault injection was enabled for cached pools with commit
207c09509 ("MINOR: pools: move the fault injector to __pool_alloc()"),
except that the condition for CONFIG_HAP_POOLS still depended on
DEBUG_FAIL_ALLOC not being set, which limits the usability to cases
where the define is set by hand. Let's remove it from the equation as
this is not a constraint anymore. While a bit old, there's no need to
backport this as it's only used during development.
This commit is contained in:
@@ -388,7 +388,7 @@
|
||||
/* Pools are always enabled unless explicitly disabled. When disabled, the
|
||||
* calls are directly passed to the underlying OS functions.
|
||||
*/
|
||||
#if !defined(DEBUG_NO_POOLS) && !defined(DEBUG_UAF) && !defined(DEBUG_FAIL_ALLOC)
|
||||
#if !defined(DEBUG_NO_POOLS) && !defined(DEBUG_UAF)
|
||||
#define CONFIG_HAP_POOLS
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user