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
|
@ -41,14 +41,13 @@ static int check_event_type(int type, Relay_log_info *rli)
|
|||
*/
|
||||
if (fd_event && fd_event->event_type_permutation)
|
||||
{
|
||||
IF_DBUG({
|
||||
int new_type= fd_event->event_type_permutation[type];
|
||||
DBUG_PRINT("info",
|
||||
("converting event type %d to %d (%s)",
|
||||
type, new_type,
|
||||
Log_event::get_type_str((Log_event_type)new_type)));
|
||||
},
|
||||
(void)0);
|
||||
#ifdef DBUG_TRACE
|
||||
int new_type= fd_event->event_type_permutation[type];
|
||||
DBUG_PRINT("info",
|
||||
("converting event type %d to %d (%s)",
|
||||
type, new_type,
|
||||
Log_event::get_type_str((Log_event_type)new_type)));
|
||||
#endif
|
||||
type= fd_event->event_type_permutation[type];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue