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:
Willy Tarreau 2022-01-12 16:28:06 +01:00
parent 3b990fe0be
commit 39fd546d4b
1 changed files with 1 additions and 1 deletions

View File

@ -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