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:
Johan Wikman
2017-10-02 15:31:54 +03:00
parent 8d03876e3e
commit 68432bbaa3
9 changed files with 71 additions and 71 deletions

View File

@ -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);