mirror of
https://github.com/MariaDB/server.git
synced 2026-05-02 13:15:32 +02: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:
parent
db7e04ed3a
commit
a69cf6f07e
31 changed files with 89 additions and 99 deletions
|
|
@ -116,16 +116,20 @@ static void GCALC_DBUG_PRINT_PI(const Gcalc_heap::Info *pi)
|
|||
int n_buf;
|
||||
if (pi->type == Gcalc_heap::nt_intersection)
|
||||
{
|
||||
#ifdef DBUG_TRACE
|
||||
const Gcalc_scan_iterator::intersection_info *ic= i_data(pi);
|
||||
|
||||
GCALC_DBUG_PRINT(("intersection point %d %d",
|
||||
ic->edge_a->thread, ic->edge_b->thread));
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
if (pi->type == Gcalc_heap::nt_eq_node)
|
||||
{
|
||||
#ifdef DBUG_TRACE
|
||||
const Gcalc_scan_iterator::point *e= eq_sp(pi);
|
||||
GCALC_DBUG_PRINT(("eq point %d", e->thread));
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
n_buf= gcalc_pi_str(buf, pi, "");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue