Stop monitors first when shutting down

As monitors aren't synchronized with the worker threads, they need to be
shut down first.
This commit is contained in:
Markus Mäkelä 2017-09-29 10:03:43 +03:00
parent ae3e7a07e2
commit c6623337b6

View File

@ -2081,6 +2081,9 @@ int main(int argc, char **argv)
/** Stop administrative interface */
mxs_admin_shutdown();
/*< Stop all the monitors */
monitorStopAll();
/*<
* Wait for the housekeeper to finish.
*/
@ -2110,9 +2113,6 @@ int main(int argc, char **argv)
*/
thread_wait(log_flush_thr);
/*< Stop all the monitors */
monitorStopAll();
/*< Call finish on all modules. */
modules_process_finish();