MXS-2271 Cleanup internal monitor header and its functions

Some functions still accessed the servers-array. Most functions are now
inside class. Removed unused defines.
This commit is contained in:
Esa Korhonen
2019-03-07 18:51:54 +02:00
parent e7abc53b70
commit ac5ee1278c
11 changed files with 139 additions and 211 deletions

View File

@ -2186,7 +2186,7 @@ int main(int argc, char** argv)
}
/** Start all monitors */
monitor_start_all();
MonitorManager::start_all_monitors();
if (cnf->config_check)
{
@ -2258,7 +2258,7 @@ int main(int argc, char** argv)
mxs_admin_shutdown();
/*< Stop all monitors */
monitor_stop_all();
MonitorManager::stop_all_monitors();
/*< Destroy all monitors */
MonitorManager::destroy_all_monitors();