[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:
Relates
relates to MDEV-28541 Unused counter Innodb_encryption_key_... Closed
relates to MDEV-21212 buf_page_get_gen -> buf_pool->stat.n_... Closed

 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.


Generated at Thu Feb 08 10:01:30 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.