From 39fd546d4b23914cb4bd375d2f628897362dc82d Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 12 Jan 2022 16:28:06 +0100 Subject: [PATCH] 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. --- include/haproxy/defaults.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/haproxy/defaults.h b/include/haproxy/defaults.h index 8ea94e53a..7e9e9a3d3 100644 --- a/include/haproxy/defaults.h +++ b/include/haproxy/defaults.h @@ -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