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:
None 
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
Description:
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.

regards,
Umesh

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.037 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.