mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
aeec459369
The problem was that IM stoped guarded instances on shutdown, but didn't wait for them to stop. The fix is to wait for guarded instances to stop before exitting from the main thread. The idea is that Instance-monitoring thread should add itself to Thread_registry so that it will be taken into account on shutdown. However, Thread_registry should not signal it on shutdown in order to not interrupt wait()/waitpid(). server-tools/instance-manager/guardian.cc: Be more verbose. server-tools/instance-manager/instance.cc: Register mysqld-monitoring thread in Thread_registry. server-tools/instance-manager/instance.h: Add reference to Thread_registry. server-tools/instance-manager/instance_map.cc: Pass Thread_registry reference to Instance. server-tools/instance-manager/instance_map.h: Add reference to Thread_registry. server-tools/instance-manager/listener.cc: Be more verbose. server-tools/instance-manager/manager.cc: Be more verbose. server-tools/instance-manager/mysql_connection.cc: Eliminate type-conversion warnings. server-tools/instance-manager/thread_registry.cc: Be more verbose. server-tools/instance-manager/thread_registry.h: Eliminate copy&paste, make impl-specific constructor private. |
||
---|---|---|
.. | ||
buffer.cc | ||
buffer.h | ||
CMakeLists.txt | ||
command.cc | ||
command.h | ||
commands.cc | ||
commands.h | ||
exit_codes.h | ||
guardian.cc | ||
guardian.h | ||
IMService.cpp | ||
IMService.h | ||
instance.cc | ||
instance.h | ||
instance_map.cc | ||
instance_map.h | ||
instance_options.cc | ||
instance_options.h | ||
listener.cc | ||
listener.h | ||
log.cc | ||
log.h | ||
Makefile.am | ||
manager.cc | ||
manager.h | ||
messages.cc | ||
messages.h | ||
mysql_connection.cc | ||
mysql_connection.h | ||
mysql_manager_error.h | ||
mysqlmanager.cc | ||
mysqlmanager.vcproj | ||
options.cc | ||
options.h | ||
parse.cc | ||
parse.h | ||
parse_output.cc | ||
parse_output.h | ||
portability.h | ||
priv.cc | ||
priv.h | ||
protocol.cc | ||
protocol.h | ||
README | ||
thread_registry.cc | ||
thread_registry.h | ||
user_management_commands.cc | ||
user_management_commands.h | ||
user_map.cc | ||
user_map.h | ||
WindowsService.cpp | ||
WindowsService.h |
Instance Manager - manage MySQL instances locally and remotely. File description: mysqlmanager.cc - entry point to the manager, main, options.{h,cc} - handle startup options manager.{h,cc} - manager process mysql_connection.{h,cc} - handle one connection with mysql client. See also instance manager architecture description in mysqlmanager.cc.