2010-05-20 10:31:03 +04:00
|
|
|
SET @old_debug = @@GLOBAL.debug;
|
2008-02-26 12:03:59 -03: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 10:30:53 +03: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 10:31:03 +04:00
|
|
|
SET GLOBAL debug=@old_debug;
|
2010-04-16 10:30:53 +03:00
|
|
|
End of 5.1 tests
|