Wrong recommendation for parameter log_slow_queries in warning during startup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
New
|
Undecided
|
Unassigned |
Bug Description
When I start the database with:
log_slow_queries = 0
I get the following warning:
101231 8:15:47 [Warning] '--log_
This is a wrong recommendation. log-slow-file is deprecated as well and slow_query_log should be used instead.
6393 {"log-slow-
6394 "Log slow queries to a table or log file. Defaults logging to table "
6395 "mysql.slow_log or hostname-slow.log if --log-output=file is used. "
6396 "Must be enabled to activate other slow log options. "
6397 "(deprecated option, use --slow_
6398 &opt_slow_logname, &opt_slow_logname, 0, GET_STR, OPT_ARG,
6399 0, 0, 0, 0, 0, 0},
8757 case (int) OPT_SLOW_QUERY_LOG:
8758 WARN_DEPRECATED
8759 opt_slow_log= 1;
8760 break;
It also looks like we have redundant code here!