-
Paulo Silva authored
Removes the dependency of NDB_delete_all tool on NDBT library since this should only be used for debugging purposes. NDB_delete_all relies on NDBT library mainly for returning status codes and printing them using 'NDBT_ProgramExit'. Besides that, it also uses functionality for printing debug information and some utility methods. However, NDBT library was built for testing purposes only and the printed return information interferes with the testing tools. Instead of relying on NDBT, new program return codes were defined (NdbToolsProgramExitCodes.hpp) so they can be used for all NDB tools. The current change also includes a small refactoring of restore tools which had been decoupled from NDBT library and defined return codes internally, in order to keep consistency. NDB_delete_all also depends on some macros to log information. These were also moved to another header file (NdbToolsLogging.hpp) so they can be used in all NDB tools. Instead of resorting to g_err and g_info which are specific of NDBT, ndberr and ndbout are now used. Change-Id: I783f9beb80d60231d891d87486c11de09c048525
Paulo Silva authoredRemoves the dependency of NDB_delete_all tool on NDBT library since this should only be used for debugging purposes. NDB_delete_all relies on NDBT library mainly for returning status codes and printing them using 'NDBT_ProgramExit'. Besides that, it also uses functionality for printing debug information and some utility methods. However, NDBT library was built for testing purposes only and the printed return information interferes with the testing tools. Instead of relying on NDBT, new program return codes were defined (NdbToolsProgramExitCodes.hpp) so they can be used for all NDB tools. The current change also includes a small refactoring of restore tools which had been decoupled from NDBT library and defined return codes internally, in order to keep consistency. NDB_delete_all also depends on some macros to log information. These were also moved to another header file (NdbToolsLogging.hpp) so they can be used in all NDB tools. Instead of resorting to g_err and g_info which are specific of NDBT, ndberr and ndbout are now used. Change-Id: I783f9beb80d60231d891d87486c11de09c048525
Loading