Bug #101396 fil_n_file_opened is redundant
Submitted: 30 Oct 2020 8:40 Modified: 30 Oct 2020 9:04
Reporter: Sergey Glushchenko Email Updates:
Status: Verified Impact on me:
Category:MySQL Server: InnoDB storage engine Severity:S3 (Non-critical)
Version:8.0.22 OS:Any
Assigned to: CPU Architecture:Any

[30 Oct 2020 8:40] Sergey Glushchenko
fil_n_file_opened is used to display the number of open files for InnoDB monitor and  status variable.

Real accounting of the number of open files is done by Fil_shard::s_n_open atomic variable

fil_n_file_opened is updated each time we increment or decrement s_n_open

It would be better to provide a function to access the current value of s_n_open instead.

How to repeat:
Read the code
[30 Oct 2020 9:04] MySQL Verification Team
Hello Sergey,

Thank you for the report and feedback.