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:
parent
ae3e7a07e2
commit
c6623337b6
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user