mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-29613 Improve WITH_DBUG_TRACE=OFF
In commit 28325b0863
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
This commit is contained in:
@ -4762,7 +4762,7 @@ void Query_cache::cache_dump()
|
||||
|
||||
void Query_cache::queries_dump()
|
||||
{
|
||||
|
||||
#ifdef DBUG_TRACE
|
||||
if (!initialized)
|
||||
{
|
||||
DBUG_PRINT("qcache", ("Query Cache not initialized"));
|
||||
@ -4823,11 +4823,13 @@ void Query_cache::queries_dump()
|
||||
DBUG_PRINT("qcache", ("no queries in list"));
|
||||
}
|
||||
DBUG_PRINT("qcache", ("------------------"));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
void Query_cache::tables_dump()
|
||||
{
|
||||
#ifdef DBUG_TRACE
|
||||
if (!initialized || query_cache_size == 0)
|
||||
{
|
||||
DBUG_PRINT("qcache", ("Query Cache not initialized"));
|
||||
@ -4850,6 +4852,7 @@ void Query_cache::tables_dump()
|
||||
else
|
||||
DBUG_PRINT("qcache", ("no tables in list"));
|
||||
DBUG_PRINT("qcache", ("--------------------"));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user