MXS-1848 monitor_[alloc|free]() -> monitor_[create|destroy]

As these will call the createInstance and destroyInstance functions
of the monitor, they are more appropriately named like this.
This commit is contained in:
Johan Wikman
2018-05-06 19:37:37 +03:00
parent 510eb7ec7c
commit 851cefefc6
5 changed files with 7 additions and 7 deletions

View File

@ -92,14 +92,14 @@ static unsigned int all_server_bits = SERVER_RUNNING | SERVER_MAINT |
SERVER_JOINED | SERVER_NDB;
/**
* Allocate a new monitor, load the associated module for the monitor
* Create a new monitor, load the associated module for the monitor
* and start execution on the monitor.
*
* @param name The name of the monitor module to load
* @param module The module to load
* @return The newly created monitor
*/
MXS_MONITOR* monitor_alloc(const char *name, const char *module)
MXS_MONITOR* monitor_create(const char *name, const char *module)
{
char* my_name = MXS_STRDUP(name);
char *my_module = MXS_STRDUP(module);