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.
This commit is contained in:
Dmitry Shulga 2024-08-02 14:34:31 +07:00
parent 811614d412
commit 00862b688c

View file

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