Commit 0bc7aa25 authored by Georgi Kodinov's avatar Georgi Kodinov

WL4403: --general_log and --slow_query_log don't turn on the logging.

Fixed a compilation warning
parent c3296418
...@@ -7665,8 +7665,6 @@ mysqld_get_one_option(int optid, ...@@ -7665,8 +7665,6 @@ mysqld_get_one_option(int optid,
break; break;
case 'l': case 'l':
WARN_DEPRECATED(NULL, "7.0", "--log", "'--general_log'/'--general_log_file'"); WARN_DEPRECATED(NULL, "7.0", "--log", "'--general_log'/'--general_log_file'");
/* FALL-THROUGH */
case OPT_GENERAL_LOG_FILE:
opt_log=1; opt_log=1;
break; break;
case 'h': case 'h':
...@@ -7837,8 +7835,6 @@ mysqld_get_one_option(int optid, ...@@ -7837,8 +7835,6 @@ mysqld_get_one_option(int optid,
#endif /* HAVE_REPLICATION */ #endif /* HAVE_REPLICATION */
case (int) OPT_SLOW_QUERY_LOG: case (int) OPT_SLOW_QUERY_LOG:
WARN_DEPRECATED(NULL, "7.0", "--log_slow_queries", "'--slow_query_log'/'--slow_query_log_file'"); WARN_DEPRECATED(NULL, "7.0", "--log_slow_queries", "'--slow_query_log'/'--slow_query_log_file'");
/* FALL-THROUGH */
case (int) OPT_SLOW_QUERY_LOG_FILE:
opt_slow_log= 1; opt_slow_log= 1;
break; break;
#ifdef WITH_CSV_STORAGE_ENGINE #ifdef WITH_CSV_STORAGE_ENGINE
......
...@@ -1010,6 +1010,7 @@ show_system_thread(enum_thread_type thread) ...@@ -1010,6 +1010,7 @@ show_system_thread(enum_thread_type thread)
RETURN_NAME_AS_STRING(SYSTEM_THREAD_EVENT_WORKER); RETURN_NAME_AS_STRING(SYSTEM_THREAD_EVENT_WORKER);
} }
#undef RETURN_NAME_AS_STRING #undef RETURN_NAME_AS_STRING
return "UNKNOWN"; /* keep gcc happy */
} }
/** /**
......
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