diff --git a/sql/binlog.cc b/sql/binlog.cc index 4f0665b..13e916b 100644 --- a/sql/binlog.cc +++ b/sql/binlog.cc @@ -8109,15 +8109,8 @@ int THD::decide_logging_format(TABLE_LIST *tables) */ uint non_replicated_tables_count= 0; #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 4de34e6..5483003 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -1563,7 +1563,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