summaryrefslogtreecommitdiff
path: root/sql/sql_binlog.cc
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2022-10-04 11:42:37 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2022-10-04 11:42:37 +0200
commit2f70784c2aff3bcf67f89f4d8cd121e8f8c3355f (patch)
treefaaec8693d4aa4ba3a71c11a6143fc8d08d1fa95 /sql/sql_binlog.cc
parent4345d9310080e6e4cbf1040263a2653f7d3d9227 (diff)
parentb6ebadaa66ee68b1880c0e10669543d1ba058c18 (diff)
downloadmariadb-git-2f70784c2aff3bcf67f89f4d8cd121e8f8c3355f.tar.gz
Merge branch '10.7' into 10.8
Diffstat (limited to 'sql/sql_binlog.cc')
-rw-r--r--sql/sql_binlog.cc15
1 files changed, 7 insertions, 8 deletions
diff --git a/sql/sql_binlog.cc b/sql/sql_binlog.cc
index c229655e915..e71c7015238 100644
--- a/sql/sql_binlog.cc
+++ b/sql/sql_binlog.cc
@@ -43,14 +43,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];
}