2010-05-20 08:31:03 +02:00
|
|
|
SET @old_debug = @@GLOBAL.debug;
|
2008-02-26 16:03:59 +01:00
|
|
|
set debug= 'T';
|
|
|
|
select @@debug;
|
|
|
|
@@debug
|
|
|
|
T
|
|
|
|
set debug= '+P';
|
|
|
|
select @@debug;
|
|
|
|
@@debug
|
|
|
|
P:T
|
|
|
|
set debug= '-P';
|
|
|
|
select @@debug;
|
|
|
|
@@debug
|
|
|
|
T
|
2010-04-16 09:30:53 +02:00
|
|
|
#
|
|
|
|
# Bug #52629: memory leak from sys_var_thd_dbug in
|
|
|
|
# binlog.binlog_write_error
|
|
|
|
#
|
|
|
|
SET GLOBAL debug='d,injecting_fault_writing';
|
|
|
|
SELECT @@global.debug;
|
|
|
|
@@global.debug
|
|
|
|
d,injecting_fault_writing
|
|
|
|
SET GLOBAL debug='';
|
|
|
|
SELECT @@global.debug;
|
|
|
|
@@global.debug
|
|
|
|
|
2010-05-20 08:31:03 +02:00
|
|
|
SET GLOBAL debug=@old_debug;
|
2010-09-22 21:33:18 +02:00
|
|
|
#
|
|
|
|
# Bug #56709: Memory leaks at running the 5.1 test suite
|
|
|
|
#
|
|
|
|
SET @old_local_debug = @@debug;
|
|
|
|
SET @@debug='d,foo';
|
|
|
|
SELECT @@debug;
|
|
|
|
@@debug
|
|
|
|
d,foo
|
|
|
|
SET @@debug='';
|
|
|
|
SELECT @@debug;
|
|
|
|
@@debug
|
|
|
|
|
|
|
|
SET @@debug = @old_local_debug;
|
2010-04-16 09:30:53 +02:00
|
|
|
End of 5.1 tests
|