[MDEV-28537] Unused or useless InnoDB counters num_index_pages_written, num_non_index_pages_written Created: 2022-05-11 Updated: 2022-05-23 Resolved: 2022-05-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.2.2, 10.3.0, 10.4.0, 10.5.0, 10.8.0, 10.6.0, 10.7.0, 10.9.0 |
| Fix Version/s: | 10.3.35, 10.4.25, 10.5.16, 10.6.8, 10.7.4, 10.8.3, 10.9.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Marko Mäkelä | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | performance | ||
| Issue Links: |
|
||||||||||||
| Description |
|
The InnoDB counters num_index_pages_written and num_non_index_pages_written were added in MariaDB Server 10.1.0 and inadvertently disabled in MariaDB Server 10.2.2 when the instructions to increment these counters were removed from the function fil_io(). Let us remove these counters that never reported anything useful. If such statistics are really needed in a special case, they can be obtained by instrumenting the code by some means, such as eBPF or a source code patch. |