]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: pools: enable pools with DEBUG_FAIL_ALLOC as well
authorWilly Tarreau <w@1wt.eu>
Wed, 12 Jan 2022 15:28:06 +0000 (16:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 12 Jan 2022 16:31:01 +0000 (17:31 +0100)
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

index 8ea94e53a9b9b59e5ef466ed027a834c317d99c8..7e9e9a3d3eeb6fe37729c02109ad58373840cfed 100644 (file)
 /* 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