Skip to content

Commit 00862b6

Browse files
committed
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.
1 parent 811614d commit 00862b6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,7 @@ ELSE()
192192
ENDIF()
193193

194194

195-
IF("${MYSQL_NO_DASH_VERSION}" VERSION_LESS 11.2)
196-
SET(MEMPROTECT_DEFAULT ON)
197-
ELSE()
198-
SET(MEMPROTECT_DEFAULT OFF)
199-
ENDIF()
195+
SET(MEMPROTECT_DEFAULT ON)
200196

201197
OPTION(WITH_PROTECT_STATEMENT_MEMROOT "Enable protection of statement's memory root after first SP/PS execution. Turned into account only for debug build"
202198
${MEMPROTECT_DEFAULT})

0 commit comments

Comments
 (0)