summaryrefslogtreecommitdiff
path: root/sql/sql_binlog.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-09-26 14:34:43 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2022-09-26 14:34:43 +0300
commit829e8111c70cf0354f686bd9087818de61f452a2 (patch)
tree7e63e7facd44cc3b0d937c34de9b6f5737019a1c /sql/sql_binlog.cc
parent70701ee4b1a9962e33a83da94aea61d7537fe9d4 (diff)
parentfe7c95ec7833d424b1dcaf64f6c78c74ce0832d6 (diff)
downloadmariadb-git-829e8111c70cf0354f686bd9087818de61f452a2.tar.gz
Merge 10.5 into 10.6
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 bab2afb957a..9f61135232f 100644
--- a/sql/sql_binlog.cc
+++ b/sql/sql_binlog.cc
@@ -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];
}