Rename MXS_MONITOR::databases to MXS_MONITOR::monitored_servers
More descriptive name. Some local varaibles could now also be renamed to be more descriptive, but that's for another day.
This commit is contained in:
@ -960,9 +960,9 @@ bool runtime_destroy_monitor(MXS_MONITOR *monitor)
|
||||
{
|
||||
monitorStop(monitor);
|
||||
|
||||
while (monitor->databases)
|
||||
while (monitor->monitored_servers)
|
||||
{
|
||||
monitorRemoveServer(monitor, monitor->databases->server);
|
||||
monitorRemoveServer(monitor, monitor->monitored_servers->server);
|
||||
}
|
||||
monitorDestroy(monitor);
|
||||
MXS_NOTICE("Destroyed monitor '%s'", monitor->name);
|
||||
|
Reference in New Issue
Block a user