mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
16fadb10b5
When re-setting (SET GLOBAL debug='') the GLOBAL debug settings the server was not freeing the data elements from the top (initial) frame before setting them to 0 without freeing the underlying memory. As these are global settings there's a chance that something is there already. Fixed by : 1. making sure the allocated data are cleaned up before re-setting them while parsing a debug string 2. making sure the stuff allocated in the global settings is freed on shutdown.
25 lines
438 B
Text
25 lines
438 B
Text
--source include/have_debug.inc
|
|
|
|
#
|
|
# Bug#34678 @@debug variable's incremental mode
|
|
#
|
|
|
|
set debug= 'T';
|
|
select @@debug;
|
|
set debug= '+P';
|
|
select @@debug;
|
|
set debug= '-P';
|
|
select @@debug;
|
|
|
|
--echo #
|
|
--echo # Bug #52629: memory leak from sys_var_thd_dbug in
|
|
--echo # binlog.binlog_write_error
|
|
--echo #
|
|
|
|
SET GLOBAL debug='d,injecting_fault_writing';
|
|
SELECT @@global.debug;
|
|
SET GLOBAL debug='';
|
|
SELECT @@global.debug;
|
|
|
|
|
|
--echo End of 5.1 tests
|