summaryrefslogtreecommitdiff
path: root/server-tools
diff options
context:
space:
mode:
authorunknown <anozdrin@mysql.com>2006-05-18 22:31:28 +0400
committerunknown <anozdrin@mysql.com>2006-05-18 22:31:28 +0400
commitdfa780e6488e8c1ba30c2a7d934b6049b1925a27 (patch)
tree309a03e93fab2db67e96cf42552649defac15b9e /server-tools
parent8b4fcf6e3bbd5aab9c8027a5218013f17d408e00 (diff)
downloadmariadb-git-dfa780e6488e8c1ba30c2a7d934b6049b1925a27.tar.gz
Fix compilation error on FC4.
Diffstat (limited to 'server-tools')
-rw-r--r--server-tools/instance-manager/manager.cc30
1 files changed, 15 insertions, 15 deletions
diff --git a/server-tools/instance-manager/manager.cc b/server-tools/instance-manager/manager.cc
index 21e02c0b023..35cce8308d1 100644
--- a/server-tools/instance-manager/manager.cc
+++ b/server-tools/instance-manager/manager.cc
@@ -133,6 +133,7 @@ void manager()
{
int err_code;
const char *err_msg;
+ bool shutdown_complete= FALSE;
Thread_registry thread_registry;
/*
@@ -243,25 +244,23 @@ void manager()
To work nicely with LinuxThreads, the signal thread is the first thread
in the process.
*/
- int signo;
- bool shutdown_complete;
- shutdown_complete= FALSE;
-
- instance_map.guardian->lock();
- instance_map.lock();
+ {
+ instance_map.guardian->lock();
+ instance_map.lock();
- int flush_instances_status= instance_map.flush_instances();
+ int flush_instances_status= instance_map.flush_instances();
- instance_map.unlock();
- instance_map.guardian->unlock();
+ instance_map.unlock();
+ instance_map.guardian->unlock();
- if (flush_instances_status)
- {
- log_error("Cannot init instances repository. This might be caused by "
- "the wrong config file options. For instance, missing mysqld "
- "binary. Aborting.");
- return;
+ if (flush_instances_status)
+ {
+ log_error("Cannot init instances repository. This might be caused by "
+ "the wrong config file options. For instance, missing mysqld "
+ "binary. Aborting.");
+ return;
+ }
}
/*
@@ -272,6 +271,7 @@ void manager()
while (!shutdown_complete)
{
+ int signo;
int status= 0;
if ((status= my_sigwait(&mask, &signo)) != 0)