summaryrefslogtreecommitdiff
path: root/server-tools/instance-manager/messages.cc
diff options
context:
space:
mode:
authorunknown <jimw@rama.(none)>2006-07-12 12:30:22 -0700
committerunknown <jimw@rama.(none)>2006-07-12 12:30:22 -0700
commit812c9cc84acdde17da62a804c720f465ff72c292 (patch)
tree3a6a3ca3bba5cb4bfbd49895d54314e32ea337c4 /server-tools/instance-manager/messages.cc
parent67d53e36cdbcc4cdf5dc785a5f465c1e1bc7fdbe (diff)
downloadmariadb-git-812c9cc84acdde17da62a804c720f465ff72c292.tar.gz
Bug #12673: Instance Manager: allows to stop the instance many times
The instance manager was not actually checking whether an instance was actually running before trying to stop it. Now it checks first. mysql-test/r/im_life_cycle.result: Add new results mysql-test/t/im_life_cycle.imtest: Add new regression test server-tools/instance-manager/instance.cc: Fix Instance::stop() to report ER_INSTANCE_IS_NOT_STARTED when that is the case. Also removed unnecessary goto. server-tools/instance-manager/messages.cc: Fix messages with missing spaces
Diffstat (limited to 'server-tools/instance-manager/messages.cc')
-rw-r--r--server-tools/instance-manager/messages.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/server-tools/instance-manager/messages.cc b/server-tools/instance-manager/messages.cc
index a9b00b9e01f..d2595638de0 100644
--- a/server-tools/instance-manager/messages.cc
+++ b/server-tools/instance-manager/messages.cc
@@ -48,8 +48,8 @@ static const char *mysqld_error_message(unsigned sql_errno)
case ER_BAD_INSTANCE_NAME:
return "Bad instance name. Check that the instance with such a name exists";
case ER_INSTANCE_IS_NOT_STARTED:
- return "Cannot stop instance. Perhaps the instance is not started, or was started"
- "manually, so IM cannot find the pidfile.";
+ return "Cannot stop instance. Perhaps the instance is not started, or was"
+ " started manually, so IM cannot find the pidfile.";
case ER_INSTANCE_ALREADY_STARTED:
return "The instance is already started";
case ER_CANNOT_START_INSTANCE:
@@ -67,7 +67,7 @@ static const char *mysqld_error_message(unsigned sql_errno)
return "Cannot open log file";
case ER_GUESS_LOGFILE:
return "Cannot guess the log filename. Try specifying full log name"
- "in the instance options";
+ " in the instance options";
case ER_ACCESS_OPTION_FILE:
return "Cannot open the option file to edit. Check permissions";
default: