Bug #80882 Remove unused NdbMain.h
Submitted: 29 Mar 2016 12:27 Modified: 28 Apr 2016 12:11
Reporter: Magnus Blåudd Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:7.5.2 OS:Any
Assigned to: CPU Architecture:Any

[29 Mar 2016 12:27] Magnus Blåudd
Description:
The storage/ndb/include/NdbMain.h file was once added in order to make it possible to make the ndb_ binaries and tools portable to portable to different operating systems, there was especially one which required very special treatment. Since then we have dropped support for such platforms or problem has been solved in other ways.

The NdbMain.h and the two macros defined in there can thus be removed. This will improve code clarity and remove unnecessary code obfuscation.

How to repeat:
MCI. See NdbMain.h

Suggested fix:
Remove usage of macro NDB_MAIN(name)
Remove usage of NDB_COMMAND(name, str_name, syntax, description, stacksize)
Remove the file storage/ndb/include/NdbMain.h
[28 Apr 2016 12:11] Jon Stephens
Fixed in NDB 7.5.2.

Code change only, no visible impact on users--no changelog entry needed.

Closed.