From c9038f92922ab919cb84996f0cb6b869cd86e9aa Mon Sep 17 00:00:00 2001 From: "kroki/tomash@moonlight.home" <> Date: Fri, 2 Feb 2007 14:21:04 +0300 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/set_var.cc b/sql/set_var.cc index 1f079eee0c6..6e1cdd98125 100644 --- a/sql/set_var.cc +++ b/sql/set_var.cc @@ -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);