1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Bug#34424 query_cache_debug.test leads to valgrind warnings

Bug#34678 @@debug variable's incremental mode

The problem is that the per-thread debugging settings stack wasn't
being deallocated before the thread termination, leaking the stack
memory. The chosen solution is to push a new state if the current
is set to the initial settings and pop it (free) once the thread
finishes.
This commit is contained in:
davi@mysql.com/endora.local
2008-02-26 12:03:59 -03:00
parent fd3bcbea80
commit cdd5eae9b6
7 changed files with 65 additions and 17 deletions

View File

@ -0,0 +1,12 @@
set debug= 'T';
select @@debug;
@@debug
T
set debug= '+P';
select @@debug;
@@debug
P:T
set debug= '-P';
select @@debug;
@@debug
T