From 00862b688c90057256f3b2fdc2a69e788bcf100d Mon Sep 17 00:00:00 2001 From: Dmitry Shulga Date: Fri, 2 Aug 2024 14:34:31 +0700 Subject: [PATCH] MDEV-14959: Control over memory allocated for SP/PS The final touch to fixing memory leaks for PS/SP. This patch turns on by default the option WITH_PROTECT_STATEMENT_MEMROOT in order to build server with memory leaks detection mechanism switched on. --- CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cc34e04b98d..c2e98317763 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -192,11 +192,7 @@ ELSE() ENDIF() -IF("${MYSQL_NO_DASH_VERSION}" VERSION_LESS 11.2) - SET(MEMPROTECT_DEFAULT ON) -ELSE() - SET(MEMPROTECT_DEFAULT OFF) -ENDIF() +SET(MEMPROTECT_DEFAULT ON) OPTION(WITH_PROTECT_STATEMENT_MEMROOT "Enable protection of statement's memory root after first SP/PS execution. Turned into account only for debug build" ${MEMPROTECT_DEFAULT})