Bug #75214 KEYFILE_INFO is defined but not used
Submitted: 15 Dec 2014 15:25 Modified: 16 Dec 2014 10:10
Reporter: zhai weixiang (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: MyISAM storage engine Severity:S3 (Non-critical)
Version:5.6, 5.7 OS:Any
Assigned to: CPU Architecture:Any

[15 Dec 2014 15:25] zhai weixiang
Description:
$pwd
/u01/project/mysql-lab/mysql-5.7.5-m15

$grep 'st_keyfile_info' -R * --color
sql/structs.h:typedef struct st_keyfile_info {  /* used with ha_info() */

$grep 'KEYFILE_INFO' -R * --color
sql/structs.h:} KEYFILE_INFO;

How to repeat:
read the code 

Suggested fix:
remove or use it.
[16 Dec 2014 10:10] MySQL Verification Team
Hello Zhai Weixiang,

Thank you for the report.

Thanks,
Umesh
[16 Dec 2014 10:11] MySQL Verification Team
// git source

[ushastry@localhost mysql-trunk]$ git log -1
commit d6b2979683684123ad02b17badc2d308386cd0f5
Author: Sunny Bains <Sunny.Bains@oracle.com>
Date:   Sun Dec 14 16:30:44 2014 +1100

    Fix code formatting.

[ushastry@localhost mysql-trunk]$ grep 'st_keyfile_info' -R * --color
sql/structs.h:typedef struct st_keyfile_info {	/* used with ha_info() */
[ushastry@localhost mysql-trunk]$ 
[ushastry@localhost mysql-trunk]$ grep 'KEYFILE_INFO' -R * --color
sql/structs.h:} KEYFILE_INFO;