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);