summaryrefslogtreecommitdiff
path: root/sql/log.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-09-23 13:40:42 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2022-09-23 13:40:42 +0300
commita69cf6f07ee7286d4813ef5c602d5b79b39d3028 (patch)
tree6068dad43fbda21245e341a6da0164fc7ef01bd1 /sql/log.h
parentdb7e04ed3ab5d591a323443cb20c3a45792916b6 (diff)
downloadmariadb-git-a69cf6f07ee7286d4813ef5c602d5b79b39d3028.tar.gz
MDEV-29613 Improve WITH_DBUG_TRACE=OFF
In commit 28325b08633372cc343dfcbc41fe252020cf6e6e a compile-time option was introduced to disable the macros DBUG_ENTER and DBUG_RETURN or DBUG_VOID_RETURN. The parameter name WITH_DBUG_TRACE would hint that it also covers DBUG_PRINT statements. Let us do that: WITH_DBUG_TRACE=OFF shall disable DBUG_PRINT() as well. A few InnoDB recovery tests used to check that some output from DBUG_PRINT("ib_log", ...) is present. We can live without those checks. Reviewed by: Vladislav Vaintroub
Diffstat (limited to 'sql/log.h')
-rw-r--r--sql/log.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/log.h b/sql/log.h
index ed4bcd9479c..1707a8c8831 100644
--- a/sql/log.h
+++ b/sql/log.h
@@ -726,7 +726,7 @@ public:
}
void harvest_bytes_written(Atomic_counter<uint64> *counter)
{
-#ifndef DBUG_OFF
+#ifdef DBUG_TRACE
char buf1[22],buf2[22];
#endif
DBUG_ENTER("harvest_bytes_written");