Loading mysql-test/r/im_life_cycle.result +2 −0 Original line number Diff line number Diff line Loading @@ -62,3 +62,5 @@ SHOW INSTANCES; instance_name status mysqld1 online mysqld2 offline SHOW INSTANCE STATUS; ERROR 42000: You have an error in your command syntax. Check the manual that corresponds to your MySQL Instance Manager version for the right syntax to use mysql-test/t/im_life_cycle.imtest +9 −0 Original line number Diff line number Diff line Loading @@ -140,3 +140,12 @@ SHOW INSTANCES; --exec $MYSQL_TEST_DIR/t/kill_n_check.sh $IM_MYSQLD2_PATH_PID killed SHOW INSTANCES; ########################################################################### # # 1.1.8. Check that Instance Manager returns an error on # incomplete SHOW INSTANCE STATUS command. # ########################################################################### --error 1149 SHOW INSTANCE STATUS; server-tools/instance-manager/Makefile.am +2 −4 Original line number Diff line number Diff line Loading @@ -30,10 +30,8 @@ liboptions_a_CXXFLAGS= $(CXXFLAGS) \ -DDEFAULT_PID_FILE_NAME="$(localstatedir)/mysqlmanager.pid" \ -DDEFAULT_LOG_FILE_NAME="$(localstatedir)/mysqlmanager.log" \ -DDEFAULT_SOCKET_FILE_NAME="/tmp/mysqlmanager.sock" \ -DDEFAULT_PASSWORD_FILE_NAME="$(sysconfdir)/mysqlmanager.passwd" \ -DDEFAULT_PASSWORD_FILE_NAME="/etc/mysqlmanager.passwd" \ -DDEFAULT_MYSQLD_PATH="$(libexecdir)/mysqld$(EXEEXT)" \ -DDEFAULT_MONITORING_INTERVAL="20" \ -DDEFAULT_PORT="2273" \ -DDEFAULT_CONFIG_FILE="/etc/my.cnf" \ -DPROTOCOL_VERSION=@PROTOCOL_VERSION@ Loading server-tools/instance-manager/commands.cc +1 −1 Original line number Diff line number Diff line Loading @@ -483,7 +483,7 @@ int Show_instance_log::execute(struct st_net *net, ulong connection_id) read_buff.reserve(0, buff_size); /* read in one chunk */ read_len= my_seek(fd, file_stat.st_size - size, MY_SEEK_SET, MYF(0)); read_len= (int)my_seek(fd, file_stat.st_size - size, MY_SEEK_SET, MYF(0)); if ((read_len= my_read(fd, (byte*) read_buff.buffer, buff_size, MYF(0))) < 0) Loading server-tools/instance-manager/instance.cc +4 −0 Original line number Diff line number Diff line Loading @@ -418,6 +418,10 @@ bool Instance::is_running() if (options.mysqld_socket) socket= strchr(options.mysqld_socket, '=') + 1; /* no port was specified => instance falled back to default value */ if (!options.mysqld_port && !options.mysqld_socket) port= SERVER_DEFAULT_PORT; pthread_mutex_lock(&LOCK_instance); mysql_init(&mysql); Loading Loading
mysql-test/r/im_life_cycle.result +2 −0 Original line number Diff line number Diff line Loading @@ -62,3 +62,5 @@ SHOW INSTANCES; instance_name status mysqld1 online mysqld2 offline SHOW INSTANCE STATUS; ERROR 42000: You have an error in your command syntax. Check the manual that corresponds to your MySQL Instance Manager version for the right syntax to use
mysql-test/t/im_life_cycle.imtest +9 −0 Original line number Diff line number Diff line Loading @@ -140,3 +140,12 @@ SHOW INSTANCES; --exec $MYSQL_TEST_DIR/t/kill_n_check.sh $IM_MYSQLD2_PATH_PID killed SHOW INSTANCES; ########################################################################### # # 1.1.8. Check that Instance Manager returns an error on # incomplete SHOW INSTANCE STATUS command. # ########################################################################### --error 1149 SHOW INSTANCE STATUS;
server-tools/instance-manager/Makefile.am +2 −4 Original line number Diff line number Diff line Loading @@ -30,10 +30,8 @@ liboptions_a_CXXFLAGS= $(CXXFLAGS) \ -DDEFAULT_PID_FILE_NAME="$(localstatedir)/mysqlmanager.pid" \ -DDEFAULT_LOG_FILE_NAME="$(localstatedir)/mysqlmanager.log" \ -DDEFAULT_SOCKET_FILE_NAME="/tmp/mysqlmanager.sock" \ -DDEFAULT_PASSWORD_FILE_NAME="$(sysconfdir)/mysqlmanager.passwd" \ -DDEFAULT_PASSWORD_FILE_NAME="/etc/mysqlmanager.passwd" \ -DDEFAULT_MYSQLD_PATH="$(libexecdir)/mysqld$(EXEEXT)" \ -DDEFAULT_MONITORING_INTERVAL="20" \ -DDEFAULT_PORT="2273" \ -DDEFAULT_CONFIG_FILE="/etc/my.cnf" \ -DPROTOCOL_VERSION=@PROTOCOL_VERSION@ Loading
server-tools/instance-manager/commands.cc +1 −1 Original line number Diff line number Diff line Loading @@ -483,7 +483,7 @@ int Show_instance_log::execute(struct st_net *net, ulong connection_id) read_buff.reserve(0, buff_size); /* read in one chunk */ read_len= my_seek(fd, file_stat.st_size - size, MY_SEEK_SET, MYF(0)); read_len= (int)my_seek(fd, file_stat.st_size - size, MY_SEEK_SET, MYF(0)); if ((read_len= my_read(fd, (byte*) read_buff.buffer, buff_size, MYF(0))) < 0) Loading
server-tools/instance-manager/instance.cc +4 −0 Original line number Diff line number Diff line Loading @@ -418,6 +418,10 @@ bool Instance::is_running() if (options.mysqld_socket) socket= strchr(options.mysqld_socket, '=') + 1; /* no port was specified => instance falled back to default value */ if (!options.mysqld_port && !options.mysqld_socket) port= SERVER_DEFAULT_PORT; pthread_mutex_lock(&LOCK_instance); mysql_init(&mysql); Loading