BUG#23225: Slow query log: setting slow_query_log_file writes to

wrong file

After execution of SET GLOBAL SLOW_QUERY_LOG_FILE=...; slow query log
data would go into the general log file.

The problem was in the bogus cut-n-paste in the code.


sql/set_var.cc:
  Fix cut-n-paste bug.
This commit is contained in:
unknown 2007-02-02 14:21:04 +03:00
parent 6560c2aa04
commit 8b302e3ab3

View file

@ -2617,7 +2617,7 @@ bool update_sys_var_str_path(THD *thd, sys_var_str *var_str,
{
switch (log_type) {
case QUERY_LOG_SLOW:
file_log->open_slow_log(sys_var_general_log_path.value);
file_log->open_slow_log(sys_var_slow_log_path.value);
break;
case QUERY_LOG_GENERAL:
file_log->open_query_log(sys_var_general_log_path.value);