diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2019-10-11 14:02:35 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-10-11 14:02:35 +0300 |
commit | 4ebaf8136096a5bd383971f93f6bb0b0df83cd43 (patch) | |
tree | b51875157e207f08b3e6e746ed7ab4eedf0f837e /mysql-test/t/drop_debug.test | |
parent | db9a4d928dc8e81ce449b54ef0bf02c248d931d4 (diff) | |
download | mariadb-git-4ebaf8136096a5bd383971f93f6bb0b0df83cd43.tar.gz |
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.
Diffstat (limited to 'mysql-test/t/drop_debug.test')
-rw-r--r-- | mysql-test/t/drop_debug.test | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/mysql-test/t/drop_debug.test b/mysql-test/t/drop_debug.test index 21069b57285..4ba16f1cc20 100644 --- a/mysql-test/t/drop_debug.test +++ b/mysql-test/t/drop_debug.test @@ -10,17 +10,13 @@ --echo # -- --echo ---disable_warnings -DROP DATABASE IF EXISTS mysql_test; ---enable_warnings - ---echo 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); --echo +SET @save_dbug = @@debug_dbug; SET SESSION debug_dbug= "+d,bug43138"; --echo @@ -28,7 +24,7 @@ SET SESSION debug_dbug= "+d,bug43138"; DROP DATABASE mysql_test; --echo -SET SESSION debug_dbug= "-d,bug43138"; +SET SESSION debug_dbug=@save_dbug; --echo --echo # -- |