mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
MDEV-19455: Avoid SET DEBUG_DBUG='-d,...' construct
Apply the correct pattern for debug instrumentation: SET @save_dbug=@@debug_dbug; SET debug_dbug='+d,...'; ... SET debug_dbug=@save_dbug; Numerous tests use statements of the form SET debug_dbug='-d,...'; which will inadvertently enable all DBUG tracing output, causing unnecessary waste of resources.
This commit is contained in:
@@ -3,13 +3,12 @@
|
||||
# -- Bug#43138: DROP DATABASE failure does not clean up message list.
|
||||
# --
|
||||
|
||||
DROP DATABASE IF EXISTS mysql_test;
|
||||
|
||||
CREATE DATABASE mysql_test;
|
||||
CREATE TABLE mysql_test.t1(a INT);
|
||||
CREATE TABLE mysql_test.t2(b INT);
|
||||
CREATE TABLE mysql_test.t3(c INT);
|
||||
|
||||
SET @save_dbug = @@debug_dbug;
|
||||
SET SESSION debug_dbug= "+d,bug43138";
|
||||
|
||||
DROP DATABASE mysql_test;
|
||||
@@ -18,7 +17,7 @@ Error 1051 Unknown table 't1'
|
||||
Error 1051 Unknown table 't2'
|
||||
Error 1051 Unknown table 't3'
|
||||
|
||||
SET SESSION debug_dbug= "-d,bug43138";
|
||||
SET SESSION debug_dbug=@save_dbug;
|
||||
|
||||
# --
|
||||
# -- End of Bug#43138.
|
||||
|
Reference in New Issue
Block a user