Commit 8b302e3a authored by unknown's avatar unknown

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.
parent 6560c2aa
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment