[MDEV-18333] Slow_queries count doesn't increase when slow_query_log is turned off Created: 2019-01-22 Updated: 2020-08-25 Resolved: 2019-03-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Configuration |
| Affects Version/s: | 10.3.7, 10.4.2, 10.1.37, 10.2.21 |
| Fix Version/s: | 10.2.23, 10.1.39, 10.3.14, 10.4.4 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Nilnandan Joshi | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
As per the manual, Slow_queries But in real scenario, we have to active slow query log otherwise, it will not be recoded.
|
| Comments |
| Comment by Elena Stepanova [ 2019-01-22 ] | |||||||||||||||||||||||
|
The difference was introduced by this commit:
If we want to keep it this way, documentation needs to be updated. | |||||||||||||||||||||||
| Comment by Alexander Barkov [ 2019-02-13 ] | |||||||||||||||||||||||
|
A smaller script demonstrating the same problem:
The expected Slow_queries_increment is 0. | |||||||||||||||||||||||
| Comment by Alexander Barkov [ 2019-02-27 ] | |||||||||||||||||||||||
|
Discussed with Monty, agreed that it should work as follows:
| |||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2019-03-05 ] | |||||||||||||||||||||||
|
In 10.3, there are conflicts between this and bar, please fix 10.3 and close this ticket once done. | |||||||||||||||||||||||
| Comment by Alexander Barkov [ 2019-03-06 ] | |||||||||||||||||||||||
|
Made a cleanup: commit 26f0d72a3f9b92574b16fc0348f79f16ed8021d0 thd->lex->m_sql_cmd was not cleared between queries. | |||||||||||||||||||||||
| Comment by Alexander Barkov [ 2019-03-06 ] | |||||||||||||||||||||||
|
Still needs adjustments in 10.3. Reopening again. | |||||||||||||||||||||||
| Comment by Alexander Barkov [ 2019-03-06 ] | |||||||||||||||||||||||
|
Added an after-merge fix for 10.3. |