Skip to content

Commit

Permalink
Clarify the log message about master_info and relay_info files.
Browse files Browse the repository at this point in the history
Just "Master" could be understood as the master IP or hostname and thus can
cause confusion to db admins. "Master connection name" clearly states that
the log line contains connection name in the (possibly) multi-master setup.
  • Loading branch information
pivanof authored and vuvova committed Oct 9, 2015
1 parent 0ea4233 commit bff1af9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sql/sql_repl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3322,7 +3322,8 @@ bool change_master(THD* thd, Master_info* mi, bool *master_info_added)
*master_info_added= true;
}
if (global_system_variables.log_warnings > 1)
sql_print_information("Master: '%.*s' Master_info_file: '%s' "
sql_print_information("Master connection name: '%.*s' "
"Master_info_file: '%s' "
"Relay_info_file: '%s'",
(int) mi->connection_name.length,
mi->connection_name.str,
Expand Down

0 comments on commit bff1af9

Please sign in to comment.