diff --git a/sql/binlog.cc b/sql/binlog.cc index 078cec9..fa88339 100644 --- a/sql/binlog.cc +++ b/sql/binlog.cc @@ -9968,15 +9968,8 @@ int THD::decide_logging_format(TABLE_LIST *tables) */ bool warned_gtid_executed_table= false; #ifndef DBUG_OFF - { - static const char *prelocked_mode_name[] = { - "NON_PRELOCKED", - "PRELOCKED", - "PRELOCKED_UNDER_LOCK_TABLES", - }; - DBUG_PRINT("debug", ("prelocked_mode: %s", - prelocked_mode_name[locked_tables_mode])); - } + DBUG_PRINT("debug", ("prelocked_mode: %s", + get_locked_tables_mode_name(locked_tables_mode))); #endif if (variables.binlog_format != BINLOG_FORMAT_ROW && tables) diff --git a/sql/sql_class.h b/sql/sql_class.h index 01a19f2..028dd0b 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -853,7 +853,7 @@ typedef I_List Item_change_list; Type of locked tables mode. See comment for THD::locked_tables_mode for complete description. While adding new enum values add them to the getter method for this enum - declared below and defined in sql_class.cc as well. + declared below and defined in binlog.cc as well. */ enum enum_locked_tables_mode