Bug #76694 Move the declaration of fil_node_t to a header file, and clean up comments
Submitted: 15 Apr 2015 5:21 Modified: 17 Apr 2015 18:37
Reporter: Marko Mäkelä Email Updates:
Status: Closed Impact on me:
Category:MySQL Server: InnoDB Plugin storage engine Severity:S3 (Non-critical)
Version:5.7.8 OS:Any
Assigned to: CPU Architecture:Any

[15 Apr 2015 5:21] Marko Mäkelä
The definition of the data structure fil_node_t is private to fil0fil.cc.
Diagnostics code outside that module cannot access information about the files belonging to a tablespace without expensive copying.

How to repeat:
Read the code.

Suggested fix:
Move the definition of fil_node_t to fil0fil.h, where fil_space_t is already defined.
Also, feel free to clean up some function comments related to tablespaces and tablespace files.
[17 Apr 2015 18:37] Daniel Price
Fixed as of the upcoming 5.7.8, 5.8.0 releases, and here's the changelog

The definition of the "fil_node_t" data structure was moved from
"fil0fil.cc" to "fil0fil.h" so that diagnostic code outside that module
can access information about files that belong to a tablespace.