mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 06:22:28 +01:00
48ed060dd0
start instance; kill mysqlmanager; show ... The problem was that Instance Manager didn't close client sockets (sockets for client connections) on execing mysqld instance. So, mysqld-instance inherits these descriptors. The fix is to set close-on-exec flag for each client socket. mysql-test/r/im_daemon_life_cycle.result: Updated result file. mysql-test/t/im_daemon_life_cycle.imtest: Test for BUG#12751. server-tools/instance-manager/listener.cc: Set close-on-exec flag for each client socket.
24 lines
643 B
Text
24 lines
643 B
Text
SHOW VARIABLES LIKE 'server_id';
|
|
Variable_name Value
|
|
server_id 1
|
|
SHOW INSTANCES;
|
|
instance_name status
|
|
mysqld1 online
|
|
mysqld2 offline
|
|
Killing the process...
|
|
Sleeping...
|
|
Success: the process was restarted.
|
|
|
|
--------------------------------------------------------------------
|
|
-- Test for BUG#12751
|
|
--------------------------------------------------------------------
|
|
START INSTANCE mysqld2;
|
|
Success: the process has been started.
|
|
Killing the process...
|
|
Sleeping...
|
|
Success: the process was restarted.
|
|
SHOW INSTANCE STATUS mysqld1;
|
|
instance_name status version
|
|
mysqld1 online VERSION
|
|
STOP INSTANCE mysqld2;
|
|
Success: the process has been stopped.
|